One question I have regarding the code snippet below :
<input id="myCheckBox" type="checkbox" name="alamatCat"
onClick="apply(this.checked, 'textBox3', 'textBox4')"> OT Date
</td>
<td>
From <input id="textBox3" type="text" name="alamat" disabled="disabled">
To <input id="textBox4" type="text" name="alamat" disabled="disabled">
The objective is to enable both textboxes when the checkbox is clicked.
Any recommendations on how to achieve this?
Proposed solution :
What if we use the following JavaScript :
<script language="javascript">
function enableDisable(bEnable, textBoxID)
{
document.getElementById(textBoxID).disabled = !bEnable
}