There is some code like this :
if ( bValid ) {
$( this ).dialog( "close" );
$("#btnExcel").show(); }
and .aspx look like :
<form id="form1" runat="server">
<input id="inpHide" type="hidden" runat="server" />
<asp:Button ID="btnExcel" runat="server" Text="Excel" AccessKey="E" BorderWidth="0px"
OnClick="btnExcel_Click" ToolTip="Excel" Visible="false" />
</form>
`bValid` is some part of code
Why this doesnt work ? What can be done to work it out. To make button visisble ?
may be its not accessible because :
var button = $('#btnExcel')[0];
alert(button);
shows : undefined !
Looking for help.
You can't have the button as Visible="false" on the server side. That is in your ASPX page you need to have it Visible="true" because otherwise the button is not rendered to html.
You could set the style attirbute (or CssStyle attirbute) on your button to style="display:none;" and then things will work