I think I found a bug with attr(name) using jQuery 1.3.2, I think IE8
is returning "false" when the element does not have an attribute with
such a name. The attr(name) suppose to return "undefined" according to
the documentation, http://docs.jquery.com/Attributes/attr, and it
works as expected in Mozilla Firefox 3.5.2
I did a quick search on Google and on jQuery Bug Tracker, didn't find
anything strongly relevant to attr(name) in IE8 returning "false".
Example:
if($(ele).attr('disabled') !== undefined) {
// Do something.
}
Sincerely,
William Chang
http://www.williamchang.org
http://www.babybluebox.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---