Jquery not called?
<pre><code>&lt;div&gt;
&lt;asp:Button ID="btnCalculate" runat="server" Text="Calculate Claim" OnClientClick="cfrm();"/&gt;
&lt;/div&gt;
&lt;div style="visibility: hidden;"&gt;
    &lt;asp:Button ID="btnYes" runat="server" OnClick="btnYes_Clicked" /&gt;
&lt;/div&gt;

&lt;script language="javascript" type="text/javascript"&gt;
            function cfrm() {
                var fee = $('[id$=lblTotalProcedureFee]').text();
                if (fee &gt; 500) {
                    if (confirm('Are you sure to do this operation?')) {
                    $('#&lt;%= this.btnYes.ClientID %&gt;').click();
                    }
                }
            }
&lt;/script&gt;
</code></pre>

<p>I am trying to call "btnYes_Clicked" from the query. Refer to above code. It doesn't work.. then i edited the code just to test. First click, it doesn't work. 2nd click, it goes to the btnYes_Clicked event. I'm using master page which has update panels. Please help. Thanks..</p>

<pre><code>&lt;script language="javascript" type="text/javascript"&gt;
            function cfrm() {
                    $('#&lt;%= this.btnYes.ClientID %&gt;').click();                     
            }
&lt;/script&gt;
</code></pre>
