I have a form where the contents of one select box is the make of a vehicle. When the user selects a certain make I need the page to automatically reload with that vehicle make selected in the make select box, but I need to have the list box automatically populated with the vehicle models that are available for that make.
I know how to do this using php if I put a submit button for the vehicle make, but I want I want the form to automatically submit the form with the new selection in the make select box.
I found some java script that is supposed to do it, but ti did not work. Does anyone have any code that will do this?
Here is the java script that I put in my onchage tag for the vehicle make select box.
<select name="form" onchange="this.form.submit();">
I get the following error when I use this code.
this.form is null or not an object.