Posted on: 9/12/2012 1:31:12 AM | Views : 240

Hi, hope someone can help me with this...
When i checking checkbox1, i want some controls (textbox1 and checkbox2) to be enabled, while when unchecking it, I want these controls to be disabled.
This functionality is done using javascript function, that called when onClick event is fired.
Scenario 1: checkbox1 is unchecked, the other controls are disabled. I check checkbox1, the textbox1 become enabled, the checkbox2 remains disabled, and the checkbox1 remains unchecked. If I click it again, nothig happens.
scenario 2: checkbox1 is checked, the other controls are enabled. I uncheck checkbox1, both textbox1 and checkbox2 become disabled, while checkbox1 remains cheched. If I click it again, nothig happens.
function EnableControls() { var checkbox1 = document.getElementById ("checkbox1"); var textbox1 = document.getElementById ("textbox1 "); var checkbox2 = docu ...

Go to the complete details ...