Page 1 of 1

Select box onClick

Posted: Fri Jul 29, 2005 2:16 am
by s.dot
Err, I've done this before, so I know it's not that hard.

I have a select box, when a value is clicked from the drop-down box I'd like it to submit the form.

I tried:

Code: Select all

<option value=&quote;value&quote; onClick=&quote;this.form.submit();&quote;>Value</option>
It's a no go.

Posted: Fri Jul 29, 2005 2:38 am
by harrisonad

Code: Select all

<form name=frm action='somwhere.php'>
<select onchange=&quote;frm.submit()&quote;>
// ... bunch of options
</select>
</form>

Posted: Fri Jul 29, 2005 3:19 am
by s.dot
Sweet, thanks.