Questions tagged as 'html5-data'

2
answers

Difference between ".attr ()" and ".data ()"

Note that there is a difference between updating or applying a data attribute using the jQuery method .attr() and the method .data() . The examples below can be seen in this JSFiddle . Apply value to non-existent...
asked by 14.01.2014 / 18:38
3
answers

Select elements that contain a particular "date" attribute

On the page there are several elements with data attributes. To avoid going to add CSS classes to the elements, making the page code denser, I would like to select elements by the name of the data attribute. Example <div id...
asked by 14.01.2014 / 15:33