Forum Moderators: open
I've come up with this so far.
<script language="javascript">
function enableField()
{
if (document.html_form.checkbox.checked == true){
document.html_form.select_menu.disabled=false;
}else {
document.html_form.select_menu.disabled=true;
}
}
</script>
My select_menu starts off disabled.
The function is called using:
onFocus="Javascript:enableField();"
on my checkbox.
In theory, it should work, but it doesn't.
Can anyone help?