Aaron Heimlich wrote:
> This has already been logged as bug #440 
> (http://jquery.com/dev/bugs/bug/440/)
>
Aaron,

  Thanks for the response. I see that it's flagged as wontfix -- but 
have to disagree with the reason.

Given as "consider this;

<select id="combo" name="combo">
<option value="">Please select...</option>
<option value="2">2</option>
<option value="3">3</option>
</select>

$('#combo').val();"

While that's a typical case.. I've come across lots of HTML without the 
value="" options, or even HTML like;

<select id="combo" name="combo">
<option value="">Please select...</option>
<option></option> <!-- as spacer -->
<option value="2">2</option>
<option value="3">3</option>
</select>
-----


The *Bottom Line* is that IE submits a value of "b" for "combo" if the 
following select is left untouched. I've included the HTML/Form for your 
testing pleasure ;)

<html><body>
<form action="" method="GET">

<select name="s">
<option>a</option>
<option SELECTED>b</option>
<option>c</option>
</select>
<input type="submit">

</form>
</body></html>

I think that jQuery's .val() should always reflect the value that gets 
SUBMITTED. What do you guys think?

Thanks!

~ Brice





_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to