BlockUI jQuery on Button click
<p>ANSWER: The fix for this problem is this..
Change selector from $('#Button3') to $('#&lt;%= Button3.ClientID %>') 
Thanks to Yuri.</p>

<p>ISSUE:</p>

<p>I am trying to get a button <code>click</code> to run the <a href="http://jquery.malsup.com/block/" rel="nofollow">JQuery BlockUI plugin</a>. I am having some issues this is my first shot at JQuery. I do have the Hello World pop-up example working so I think I am close but could use some help getting the rest worked out.</p>

<p>Here is the code...</p>

<pre><code>&lt;script src="../../scripts/jquery-1.2.6.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="../../scripts/jquery.blockUI.js" type="text/javascript"&gt;&lt;/script&gt;

&lt;script type="text/javascript"&gt;
 $(document).ready(function() {
     $("#Button3").click(function() {
     $.blockUI();

     setTimeout(function() {
         $.unblockUI({
             onUnblock: function() { alert('onUnblock'); }
         });
     }, 2000);
   });
});

&lt;/script&gt;
</code></pre>

<p>I am trying to run this on an aspx page. As stated the Hello World popup works but not the blockUI.</p>

<p>Any help would be appreciated.</p>

<p>Here is the button aspx...</p>

<pre><code> &lt;td&gt;
      &lt;asp:Button ID="Button3" runat="server" Text="Button" /&gt;
  &lt;/td&gt;
</code></pre>

<p>no code behind events on the button.</p>

<p>This apsx page has a Master Page as well.</p>

<p>Some tweaks to the code have prodcued this error when closing the page in Visual Studio...</p>

<p>Microsoft JScript runtime error: Sys.ArgumentTypeException: Object of type 'Sys._Application' cannot be converted to type 'Sys._Application'.
Parameter name: instance</p>
