I have 5 rows and each row has a checkbox and a textbox.. by default i m disabling the textbox.. If i check the checkbox the textbox should be enabled & viceversa... how to do it in javascript....
function enableTextBox(status){
status =!status;
document.forms[0].justificationComments.disabled=status;
}
the above snippet works only for the 1st checkbox... Even if i click the second checkbox the first textbox only is enabled/disabled.. I am using logic:iterate tag and display the items.. could anyone help please