jQuery’s Data Method – How and Why to Use It

Spread the love

jQuery’s data method gives us the ability to associate arbitrary data with DOM nodes and JavaScript objects. This makes our code more concise and clean. As of jQuery 1.4.3 we also have the ability to use the method on regular JavaScript objects and listen for changes, which opens the doors to some quite interesting applications.

Demo: http://demo.tutorialzine.com/2010/11/jquery-data-method/jquery-data-method.html

Download Links

http://tutorialzine.com/2010/11/jquery-data-method/

Scroll to Top