Opened 12 years ago
Closed 12 years ago
#9819 closed bug (worksforme)
Data-atributes update in DOM bug.
Reported by: | PlanOff | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | data | Version: | 1.6.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When i change data-atributes using JavaScript using $elem.data('dataname','datavalue') i don't see changes in the DOM. When i use $elem.attr('data-dataname','datavalue') all work's as expected. Please look at this. Thank you.
Change History (1)
comment:1 Changed 12 years ago by
Component: | unfiled → data |
---|---|
Priority: | undecided → low |
Resolution: | → worksforme |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
jQuery.fn.data() does not create data-* attrs, but will read and write to them, if they exist.