Skip to main content

Bug Tracker

Side navigation

#12554 closed bug (notabug)

Opened September 18, 2012 09:12AM UTC

Closed September 18, 2012 01:16PM UTC

Have to use attr('data-id') instead of data('id')

Reported by: anonymous Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.0
Keywords: Cc:
Blocked by: Blocking:
Description

Hello,

Recently I have been wordking with jsTree and I found something that seems to be related to jQuery.

http://jsfiddle.net/3CqX3/1/

When working with this draft, one have to use attr('data-id') in order to change the data attribute because the data('id') function does not work.

Howevere when it comes to reading it seems that both functions work well

Attachments (0)
Change History (1)

Changed September 18, 2012 01:16PM UTC by dmethvin comment:1

resolution: → notabug
status: newclosed

That's the way you're supposed to do it. Ask for help on a forum if you need it.