Setting and Using Data Attributes using JQuery

Data Attributes are a quick and simple way of storing custom data on a HTML element as an attribute. Unlike traditional attributes added to a HTML element, data attributes are defined by the user, for example in you could use data-element-height or data-element-width and then store values for those two »