I am totally clueless on this one.
Here's my code:
<script>
function otherbox() {
if (document.forms.myform.dropdown.value =='new') {
handleClick('show it');
}
else {
handleClick('hide it');
}
}
</script>
<form name=myform>
<div><input type=text name=dropdown onBlur="otherbox();"></div>
</form>
and I'm getting the error message:
"document.forms.myform.dropdown is null or not an object" whenever I click off the textbox. I'm beginning to hate JavaScript. It seems like there is some kind of special syntax for everything I try to do.
Any help would be absolutely fantastic.
Here's my code:
<script>
function otherbox() {
if (document.forms.myform.dropdown.value =='new') {
handleClick('show it');
}
else {
handleClick('hide it');
}
}
</script>
<form name=myform>
<div><input type=text name=dropdown onBlur="otherbox();"></div>
</form>
and I'm getting the error message:
"document.forms.myform.dropdown is null or not an object" whenever I click off the textbox. I'm beginning to hate JavaScript. It seems like there is some kind of special syntax for everything I try to do.
Any help would be absolutely fantastic.