On Jan 6, 6:01 am, kidbrax <[email protected]> wrote:
> when I try the following code I get an error in IE7:
>
> someVar = mySelect.options[mySelect.slectedIndex].readAttribute('rel')
The rel attribute is not valid for option elements, it is valid for A
and LINK elements.
> It causes the 'Object doesn't support this property or method' error.
> It only seems to happen when I run it on an option tag. Is there
> another way to get the 'rel' attribute from an option tag that is
> cross-browser?
Try:
var someVar =
$(mySelect.options[mySelect.slectedIndex]).readAttribute('rel')
--
Rob
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---