Forum Moderators: open

Message Too Old, No Replies

onchange submits in FF, not in IE

         

topher

7:54 pm on Feb 19, 2009 (gmt 0)

10+ Year Member



Here is the code; it works in Firefox, but not in IE:

<form method="post" action="ship.html">
<input type="radio" name="ship" value="8" OnChange="this.form.submit();">First Class Mail
<input type="radio" name="ship" value="7" OnChange="this.form.submit();">Priority Mail
</form>

What are my options with using a radio input to submit for IE?

(One situation where this does work in IE is if after clicking a radio button the user clicks anywhere else on the page - then the form does submit. Even a dummy button marked "submit" would work here.)

Trace

8:49 pm on Feb 19, 2009 (gmt 0)

10+ Year Member



I thought this topic was about Final Fantasy. :(

Regardless, have you tried other mouse events, like;

<form method="post" action="http://www.google.com">
<input type="radio" name="ship" value="8" onmouseup="this.form.submit();">First Class Mail
<input type="radio" name="ship" value="7" onmouseup="this.form.submit();">Priority Mail
</form>

rocknbil

9:50 pm on Feb 19, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Or even onClick. onChange is for form elements that change, i.e., textarea, text, password, select . . .

topher

9:57 pm on Feb 19, 2009 (gmt 0)

10+ Year Member



onClick works - thank you!