How to disable TextBox on client-side click on CheckBox
Posted
by abatishchev
on Stack Overflow
See other posts from Stack Overflow
or by abatishchev
Published on 2010-04-03T20:13:26Z
Indexed on
2010/04/03
20:23 UTC
Read the original article
Hit count: 205
How to disable asp:TextBox
on client-side
click on HTML checkbox
or server-side asp:CheckBox
using JavaScript
?
<script type="text/javascript" language="javascript">
function enableTextbox() {
// ?
}
</script>
<table>
<tr>
<td>
<input id="checkTake" onclick="enableTextbox" title="Take?" />
</td>
</tr>
<tr>
<td>
<asp:TextBox runat="server" ID="txtCommission" />
</td>
</tr>
</table>
© Stack Overflow or respective owner