Bug Tracker

Opened 8 years ago

Closed 8 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 8 years ago by Rick Waldron

Component: unfileddata
Priority: undecidedlow
Resolution: worksforme
Status: newclosed

jQuery.fn.data() does not create data-* attrs, but will read and write to them, if they exist.

Note: See TracTickets for help on using tickets.