Hello all. I am trying to get a select list to submit on change. It seemed very easy but its not working as expected.
Here is what I am trying to do:
I have a form that has a bunch of fields, two select lists and a submit button. When the page is first show only the fields and the select State are shown. When the State has been selected the page submits and then the select Zip code list shows up. Once that has been selected the form submits again and then a submit button appears.
Here is the problem:
Once both lists are on the screen the on changes stop working and I get this error:
Error: submit is not a function
I am not sure why it works the first time but not the second. I have tried referencing from the document level as well but still no luck.
here is a snippet of the code
select name="state_id" onChange="submit();"
select name="zip_id" onChange="submit();"
here is a link to a test of the page
http://209.200.64.247/vipinjury/site/test.phpThanks for any help.