function hideOnCheck()
{
var chk = document.getElementById('<%=chk.ClientID%>');
var btn = document.getElementById('<%=btnSubmit.ClientID%>');
if (chk && btn)
{
if (chk.checked == true)
{
btn.disabled = false;
}
else
{
btn.disabled = true;
}
}
}
<asp:CheckBox ID="chk" runat="server" Text="All the above data are correct" onclick="hideOnCheck();"/>
0 comments:
Post a Comment