this is Your .aspx coding
<asp:CheckBox ID="CheckBox1" runat="server"onclick="enableDisable(this.checked, ' txtsmsenable ')" />
asp:TextBox ID="txtsmsenable"
runat="server"
Enabled="False">
This is your Script Coding Placed in Tag
<script type="text/javascript"
language="javascript">
function enableDisable(bEnable, textBoxID)
{
document.getElementById(textBoxID).disabled = !bEnable
}
</script>
I hope this Blog is Useful For You
No comments:
Post a Comment