Opened 12 years ago
Closed 12 years ago
#9780 closed bug (invalid)
attr not working in 1.6.1 or 1.6.2 for custom attributes.
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | attributes | Version: | 1.6.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
An example of this not working:
function toggleState() {
if($(button).attr('selected')){
$(button).removeAttr('selected');
} else {
$(button).attr('selected', 'selected');
}
}
Only tested in Chrome 12.0.742.112
Change History (1)
comment:1 Changed 12 years ago by
Component: | unfiled → attributes |
---|---|
Priority: | undecided → low |
Resolution: | → invalid |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
"selected" is not a custom attribute and should only be used with option elements.