This should probably be logged so we don't forget.

--
Brandon Aaron

On 11/2/06, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote:
>
> > I just found a little problem in ie with jquery. If we declare a combo box
> > in a form without the value attribute we can´t get the value in internet
> > Explorer. Example:
> >
> > <select id="combo" name="combo">
> > <option>1</option>
> > <option>2</option>
> > <option selected>3</option>
> > </select>
> >
> > $('#combo').val();
> >
> > This doesn´t work on ie.
> >
> > We must declare the select with the attribute value:
> >
> > <select id="combo" name="combo">
> > <option value="1">1</option>
> > <option value="2">2</option>
> > <option value="3" selected>3</option>
> > </select>
> >
> > $('#combo').val();
> >
> > This works now on ie.
> >
> > Could be it´s a bug. I only wanted to notice the jquery team. Thanks for
> > reading.
>
> It's a good question if this is a bug or not. If I remember it correctly, the 
> value of an option element should be it's text content if the value attribute 
> isn't set. In that case, it should be possible for jQuery to handle it, that 
> is, check if the value attribute exists and get the text if it doesn't.
>
> --
> Jörn Zaefferer
>
> http://bassistance.de
> --
> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>

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

Reply via email to