milo3169
Programmer
- May 2, 2007
- 42
Hi,
I'm trying to setup an event to submit this form when I do an onchange from a drop down list.
First I created the list dynamically with PHP, but when I do an onchange it comes up with an error saying - document.form1 has no properties. Any idea on why this is coming up with that error? Is it because of the dynamic list?
I'm trying to setup an event to submit this form when I do an onchange from a drop down list.
First I created the list dynamically with PHP, but when I do an onchange it comes up with an error saying - document.form1 has no properties. Any idea on why this is coming up with that error? Is it because of the dynamic list?
Code:
<form method="post" action="sub_cat_menu.php" name="form1" >
<select class="formfield" name="item_code" onchange="form1.submit()">
<?php echo build_dropdown(); ?>
</select>
</form>