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>