On Jun 11, 9:39 am, Alan Williamson <[email protected]> wrote:
> Got an interesting little problem with IE6 and selecting a particular
> item within a SELECT box.
Wow, why would you want to use jQuery to do this? Instead, try:
document.getElementById('selectTest').options[idx].selected = true;
Or if you really wanted to use jQuery a little:
$('#testSelect options')[idx].selected = true;
> Is this a bug in JQuery?
Yes. Avoid the attr() function in jQuery, it's been broken for a long
time.
Matt Kruse
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---