Something else must be wrong there, because there has never been a
problem with jQuery being able to identify select elements. They are
identified by tagName, just like any other element --$('select') -- so
there is no need for a :select pseudo class. And of course you should
be able to use any other selector, such as id, class, attribute, etc.
Do you have a test page we can see?
--Karl
____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Apr 18, 2009, at 4:29 PM, marc wrote:
Even if I add an id to the select element and try to select by Id, I
cannot get a reference to it:
<select name="yearFrom" id="yearFrom" style="visibility: hidden;"></
select>
yearfrom = $("#yearFrom")
gives me the error "yearFrom.options is undefined" when I try to get
to the yearfrom.options[0] array...
Luckily document.getElementById("yearFrom") still works so I give up
trying to use jQuery with select boxes ...