Tagged: how to use jquery.data()

How to use of jQuery.data()?

jQuery.data() is used to set/return arbitrary data to/from an element. Syntax: jQuery.data(element, key, value) “element” is the DOM element to which the data is associated. “key” is an arbitrary name of the piece of...