Opened 11 years ago
Closed 11 years ago
#11247 closed bug (invalid)
Will not grabb "a" as attribute.
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | attributes | Version: | 1.7.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
$('select').change(function(){ var b=$(this+':selected').parent().attr('a')
var c=$(this+':selected').attr('c') alert('book: '+b+' chapter:'+c)
}) will not grabb "a" as attribute. If a rename the attribute to "b" it works.
Change History (2)
comment:1 Changed 11 years ago by
comment:2 Changed 11 years ago by
Component: | unfiled → attributes |
---|---|
Priority: | undecided → low |
Resolution: | → invalid |
Status: | new → closed |
a
is not an attribute present on the element. Also, a
would be an invalid attribute. I recommend using data-* attributes for custom data.
Note: See
TracTickets for help on using
tickets.
Replying to [email protected]…:
sorry! this i the right URL: http://jsfiddle.net/v2gLS/2/