If the Visible property is set to false; usually in .net, the control will not be displayed in the HTML output after the page is processed. Therefore, in relation to jQuery, the button does not exist.
You can view the view source on the page to verify this.
If you want to do this, instead of using the Visible property, you can do something like:
<asp:Button ID="myButton" runat="server" style="visibility: hidden; display: none;" />
Or you can assign it a CSS class that hides it.
Codinggorilla
source share