#eles.removeData()
// Remove all keys
eles.removeData(): thisRemove application data keys.
Returns
thisthis collection, for chaining
Example
eles.data('temporary', 1);eles.removeData();console.log(eles.first().data('temporary')); // undefined#eles.removeData(names)
// Remove the specified keys
eles.removeData(names: string): thisRemove application data keys.
| Name | Description |
|---|---|
names: string | space-separated key names; omit to clear every key |
Returns
thisthis collection, for chaining
Example
eles.data('temporary', 1);eles.removeData('temporary');console.log(eles.first().data('temporary')); // undefinedAlso spelled eles.removeAttr.