[jQuery] selectedIndex = 0
I have a select box with id=selYear, I can get the selectedIndex with
javascript using document.myform.selYear.selectedIndex
However when I use jQuery like this: $
("#selYear").attr("selectedIndex"), I only get a value when the
selectedIndex is >0. When selectedIndex = 0, this jQuery expression
returns "undefined".
Does that seem right? What am I missing? Do I have to work around a
bug here? Thanks in advance for any clues you can share.