> This problem also arises when using the form plugin.  I thought it
> would be easy to fix but it turns out that IE resolves options without
> values to have a value identical to the empty string.  That is, if
> there is not a value attribute on the option element the following is
> true in IE:
>
> value === ""
>
> and so is this:
>
> $(...).attr('value') === ""
>
> That is really unfortunate.  If often use an empty string as the
> value, like this:
>
> <option value="">ALL</option>
>
> and in that case I want the empty string posted, not the "ALL" text.
> Programatically there doesn't seem to be a way to tell them apart in
> IE.  Anyone have any ideas?
>   
Have you checked what getAttribute returns? Or maybe "defaultValue"?

-- 
Jörn Zaefferer

http://bassistance.de


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

Reply via email to