Hi everyone ! my problem is , i tried to disable a textbox control by writing this code "textbox1.visible =false" inside the checkbox checked event ! but the event didnt fire ! Kindly get me some alternative idea! or plz tell me can i use any other control to do this operation !
[HTML]
<html>
<script>
function fun1()
{
if(document.forms[0].testcheck.checked == true)
{
document.forms[0].username.style.visibility='hidden';
}
else
{
document.forms[0].username.style.visibility='visible';
}
}
</script>
<body>
<form>
checkbox testing example.
<input type="text" name="username" value="Test">
<input type="checkbox" name="testcheck" onclick="fun1()">
</form>
</body>
</html>
[/HTML]