say i have a text field and a checkbox. when i type something in the text filed and click on checkbox i should not be able to edit whatever is there in the text filed.
how do i do this? using javascript. and also when i uncheck the checkbox the text field should be editable