Auto submit form on clicking specific dropdown - jquery
Posted
by
blasteralfred
on Stack Overflow
See other posts from Stack Overflow
or by blasteralfred
Published on 2011-03-17T16:02:17Z
Indexed on
2011/03/17
16:10 UTC
Read the original article
Hit count: 254
Hi,
I have a form like below
<form name="testform" id="testform" action="test.php" method="get">
<input name="field1" id="field1" type="text" value="">
<input name="field2" id="field2" type="text" value="">
<select name="dropdown" id="dropdown">
<option value="option1" selected="selected">option1</option>
<option value="option2">option2</option>
<option value="option3">option3</option>
</select>
<input type="submit" name="Submit" value="Submit" id="Submit">
</form>
I want to submit the form automatically when someone click (or select) an option from the dropdown. How can I make this possible using jquery or something else or simple js.
Thanks in advance... :)
blasteralfred
© Stack Overflow or respective owner