Side navigation
#9612 closed bug (duplicate)
Opened June 17, 2011 09:34PM UTC
Closed June 17, 2011 09:44PM UTC
Last modified June 17, 2011 09:44PM UTC
$.attr('defaultSelected') returns undefined instead of true/false
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | attributes | Version: | 1.6.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
$('option').attr('defaultSelected') should return true or false for <option> elements. The attribute appears in the DOM but jQuery returns undefined.
This might have something to do with that attribute being read-only?
Thanks for taking the time to contribute to the jQuery project! This is a case where prop should be used instead since defaultSelected is not an attribute.