Ticket #12270 (closed enhancement: duplicate)
Unify .data() with HTML5 data attribute.
|Reported by:||mstefanow@…||Owned by:|
http://api.jquery.com/data/#data-html5 "As of jQuery 1.4.3 HTML 5 data- attributes will be automatically pulled in to jQuery's data object. '
How about other way round? Enabling .data("value", "param") to be available outside of jQuery?
See the top comments by Ryan Kinal: "It would be awesome if it were the element instead, but that is not the case."