ExampleRemove previously attached data from an element:
Try it yourself » |
The removeData() method removes data previously set with the data() method.
$(selector).removeData(name) |
Parameter | Description |
---|---|
name | Optional. Specifies the name of data to remove. If no name is specified, this method will remove all stored data from the selected elements |