
i have a form containing 3 drop down list and radio button and a checkbox(holiday). i want that if i select the checkbox i.e holiday all dropdown radio button should be disabled. please help

<html>
<script>
function enabledisable(){
if (document.form.check.checked==true){
document.form.radios[0].disabled=true;
document.form.radios[1].disabled=true;
document.form.radios[2].disabled=true;
document.form.lang.disabled=true;
}
if (document.form.check.checked == false){
document.form.radios[0].disabled=false;
document.form.radios[1].disabled=false;
document.form.radios[2].disabled=false;
document.form.lang.disabled=false;
}
}
</script>
<form name="form">
<pre>
Select Language <select name="lang">
<option value="Hindi">Hindi</option>
<option value="English">English</option>
<option value="French">French</option>
<option value="German">German</option>
</select><br>
Select RadioButton b1<input type="radio" name="radios"> b2<input type="radio" name="radios"> b3<input type="radio" name="radios"><br>
<input type="checkbox" name="check" onclick="enabledisable();">
</pre>
</form>
</html>

thanx :)
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.