Skip to content
Alexey Kupriyanenko edited this page Apr 13, 2015 · 1 revision

.data(key, value)

key A string naming the piece of data to set.

value The new data value; this can be any Javascript type except undefined.

.data(obj)

obj An object of key-value pairs of data to update.

Store arbitrary data associated with the matched elements.

.data(key)

key A string naming the piece of data to set.

.data()

This signature does not accept any arguments.

Return the value at the named data store for the first element in the jBone collection, as set by data(name, value) or by an HTML5 data-* attribute.

.removeData(key)

key A string naming the piece of data to delete.

.removeData()

Remove a previously-stored piece of data.