Side navigation
#9819 closed bug (worksforme)
Opened July 13, 2011 02:14PM UTC
Closed July 13, 2011 03:58PM UTC
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.
Attachments (0)
Change History (1)
Changed July 13, 2011 03:58PM UTC by comment:1
| component: | unfiled → data |
|---|---|
| priority: | undecided → low |
| resolution: | → worksforme |
| status: | new → closed |
jQuery.fn.data() does not create data-* attrs, but will read and write to them, if they exist.