I'm inclined to think its a bug in IE, but hopefully jQuery can squash it. :D

Blair

On 11/2/06, Mark D.B.D < [EMAIL PROTECTED]> wrote:
Hi All,

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.

Regards,


--
----------------------------------------------------------
Mark D.B.D
http://www.markdbd.com
[EMAIL PROTECTED]
----------------------------------------------------------

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to