kirupa.com - Custom Data (data-*) Attributes

by kirupa | 7 August 2012

In the past, if you ever wanted to mark or tag your elements for any sort of programmatic access later, you didn't have too many good choices. The most common thing you did was add or remove class values from an element:


This is a companion discussion topic for the original entry at http://www.kirupa.com/html5/custom_data_attributes.htm