jQuery Intro

jQuery Intro Quiz

jQuery Intro Exercise

jQuery Basic

jQuery Basic Quiz

jQuery Basic Exercise

jQuery Advance

jQuery Advance Quiz

jQuery Advance Exercise

jQuery Selectors

jQuery Effects

jQuery Events

jQuery Methods and Properties

jQuery Traversing

jQuery CSS and HTML Methods

jQuery Misc data() Method

jQuery data() Method



The data() method is used to attach data to, or get data from, selected elements. For removing it, we have to use removeData() method.




Its syntax is:- $(selector).data(name)


Further Explanation:-


Parameter Description
name Optional. Specifies the name of data to retrieve.

Code Explanation

All Tutorials related to jQuery Methods and Properties

All Sections related to Jquery