Data

jQuery

Category: Data


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.

jQuery.data()

Store arbitrary data associated with the specified element and/or return the value that was set.

jQuery.hasData()

Determine whether an element has any jQuery data associated with it.

jQuery.queue()

Show or manipulate the queue of functions to be executed on the matched element.