Working with data in elements in jQuery
You can write data to and read data from DOM elements using special methods. We are not talking about data attributes, although these methods allow you to work with them. This is mainly needed to work with jQuery's internal storage, to place and retrieve some information related to a specific DOM element of the current page.