Back

.removeData( [key] )

Unset data from each element in the current set

If key is not passed, ALL data will be removed

Params

key{String} [optional]A key under which specific data was stored

Returns

DollarJS (chainable)

Examples

$('p').removeData('foo')
$('p').removeData()