Top "Custom-data-attribute" questions

Custom data attributes are intended to store custom data private to the page or application, for which there are no more appropriate attributes or elements.

jquery datepicker - override options from data-attribute

I'm using this markup <label> Date <input type="text" data-datepicker="{maxDate: '+1d'}" /></label> &…

jquery jquery-ui jquery-ui-datepicker custom-data-attribute
Is there any problem with using HTML5's "data-*" attributes for older browsers?

I want to associate some custom data with some HTML nodes. I was going to use the new HTML5 style …

javascript jquery html cross-browser custom-data-attribute
How can I use a data attribute to set a background-image in CSS?

I have a folder with a few background images (one.jpg, two.jpg, three.jpg) , and this markup <section …

css custom-data-attribute
Removing all dynamic 'data attributes' of an Element

I have a div where dynamic data- attributes get added on some tags. (name of data- attributes to be generated …

javascript jquery html custom-data-attribute
rails and html data attributes: use dash(-) or underscore(_)?

Lately, I'm facing problems with HTML custom data attributes in my rails application. I user the following pattern in order …

jquery ruby-on-rails html custom-data-attribute
jQuery's data() attribute does not update when element data changes

I wanna use jQuery's data() api to retrieve all the data attribute of an element. But the cache nature of …

javascript jquery html custom-data-attribute
How to retrieve HTML5 data-* Attributes using C#

I have a asp checkbox in my form: <asp:CheckBox id="option" runat="server" OnCheckedChanged="checkChange" data-attributeA="somevalue1" data-attributeB="…

c# asp.net html code-behind custom-data-attribute
Can we specify custom data attribute values in CSS?

On elements I can specify the data attributes as, e.g. <div data-widget-type="MyWidgetType1" data-property1="20" data-property2="test"> ... </…

html css custom-data-attribute
Regular Expression in data attribute -- jquery

I have the current html: <input id="dynamic1" /* other */ data-group-animal="y1,y2" /> <input id="dynamic2" /* other */ data-group-vegetable="…

jquery regex custom-data-attribute
How does html5-script-attribute "data-main" work?

For example requireJS uses following syntax: <script data-main="scripts/main" src="scripts/require.js"></script> and …

javascript html requirejs custom-data-attribute