Category: Data Storage

These methods allow us to associate arbitrary data with specific DOM elements.

.data()

Store arbitrary data associated with the matched elements or return the value at the named data store for the first element in the set of matched elements.

© The jQuery Foundation and other contributors
Licensed under the MIT License.
https://api.jquery.com/category/miscellaneous/data-storage