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: get data attribute

In my html I have a span element: <span class="field" data-fullText="This is a span element">This …

javascript jquery html custom-data-attribute
How to use dashes in HTML-5 data-* attributes in ASP.NET MVC

I am trying to use HTML5 data- attributes in my ASP.NET MVC 1 project. (I am a C# and ASP.…

asp.net-mvc html custom-data-attribute
Unable to set data attribute using jQuery Data() API

I've got the following field on an MVC view: @Html.TextBoxFor(model => model.Course.Title, new { data_helptext = "Old …

jquery model-view-controller attributes custom-data-attribute
Using HTML data-attribute to set CSS background-image url

I plan on building a custom photo gallery for a friend and I know exactly how I am going to …

css background-image custom-data-attribute
Is there a limit to the length of HTML attributes?

How long is too long for an attribute value in HTML? I'm using HTML5 style data attributes (data-foo="bar") in …

html custom-data-attribute
jQuery: Select data attributes that aren't empty?

I'm trying to select all elements that have a data-go-to attribute that is not empty. I've tried $('[data-go-to!=""]') …

javascript jquery jquery-selectors custom-data-attribute
How to use a button's "data-" attribute to call a selected JavaScript function

I'm trying to set some data on my buttons such that it can be accessed onclick. I'm having no problem …

javascript jquery html json custom-data-attribute
Do HTML5 custom data attributes “work” in IE 6?

Custom data attributes: http://dev.w3.org/html5/spec/Overview.html#embedding-custom-non-visible-data When I say “work”, I mean, if I’…

javascript internet-explorer html internet-explorer-6 custom-data-attribute
dataset vs .data - Difference?

I am reading some values in data attribute fields. I have seen two easy ways to read the data as …

javascript jquery dataset custom-data-attribute