Data Storage

jQuery

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.