Run
Online Code Editor
jQuery data() method
This is an example of using the jQuery data() method.
This is a div element.
Click the following buttons to see the effect.
Attach data
Get data