check this code, i dont know whats wrong. it should disable the text box when i click on the checkbox but it doesnt, please help.
<html><body><input type="checkbox" id="check1"><input type="text" id="bla"><script type="text/javascript">if (document.getElementById('check1').value == true){ document.getElementById('bla').disabled = true} </script></body></html>