Here it is: Source: stackoverflow.com. How to Get and Set CSS Attributes using jQuery The css() method is very much like attr() method, but it works with the CSS styles of an element rather than the HTML attributes of the element. In this jquery tutorial, you will learn two ways to get data-id, data-attribute, data-text etc. jQuery provides a set of tools for matching a set of elements in a document which is formed from borrowing CSS 1-3. ... Specifies the value of data to set: Attributes are the basic components of the html elements helps to manipulate in jQuery. JavaScript Parsing #2: jQuery data() method. When this method is used to set attribute values, it sets one or more attribute/value pairs for the set of matched elements. Gajendar Singh walks you through HTML5 custom data attributes, why they're useful, how to style them with CSS and manipulate them with JavaScript and jQuery This is the equivalent of jQuery's $.data() method. 0. jquery get data attribute . jquery set data attribute value . You can also set an attribute with the same function. jQuery - Attributes - Some of the most ... Set the value attribute of every matched element if it is called on but if it is called on