I am using a form to submit the data to get the records from the database.
In the form I am using the two select tag options.
So after selecting the options the form should submit without using the submit button. I am waiting for the response to submit the form after selecting the inputs without using the submit button(or any button) it should submit automatically.
Jquery has been used to easily to submit the form.
Make a function to check everything you want has been set, and then if it has, submit the form:
Then on your select, bind the onchange event to run the function.
Here is a working example: http://jsfiddle.net/JE6AM/
Javascript:
I've replaced the submit with an alert() to show you how the code triggers.
Edit: You can use
$_REQUEST['selectCar']
to access the value.Every form has a
submit()
function.can be submitted with