Tutorials Exercises Get Certified Services Menu
Log in
Sign Up Spaces Bootcamps

jQuery Misc removeData() Method

❮ jQuery Misc Methods


Remove previously attached data from a <div> element:

  alert("Greeting is: " + $("div").data("greeting"));
Try it Yourself »

Definition and Usage

The removeData() method removes data previously set with the data() method.



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

❮ jQuery Misc Methods