PDA

View Full Version : Disable Checkbox on condition



suman
11-13-2006, 09:57 AM
In my table, in 1st coloumn i have a checkbox,in 2nd coloumn i have status.if the status is ' c ' then the check box has to be disabled dynamically.plz give me code.

jscheuer1
11-13-2006, 10:36 AM
Well, you haven't given us much to go on. However, assuming you know how to hook (access) the element involved and have a way to read 'status':


if(value_read_from_status=='c')
hook_for_the_checkbox.disabled=1;