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.

Create an Array from a single HTML5 "data-" attribute

I have this HTML: <section id="SSID" data-texts="'Text1', 'Text2', 'Text3'"></section> I …

javascript jquery arrays html custom-data-attribute
filtering data based on a custom data attribute using jquery

I was wondering if someone could help with with some jquery code for doing the following. I have a drop …

jquery filtering custom-data-attribute
Change data-src to src via jquery

Im using a flexslider that has audio files for each slide, but I don't want to load countless audio files …

javascript jquery html flexslider custom-data-attribute
How to properly pass custom data attribute props to child components?

Basically I have 3 custom attributes data-pageName, data-defaultOption, data-options. The problem I have is that when I pass into my child …

javascript reactjs ecmascript-6 custom-data-attribute
how to get query selector data attribute in javascript?

I have a custom JS function that creates/inject a custom link into all elements in the page when it …

javascript html custom-data-attribute
How to select elements with jQuery that have a certain value in a data attribute array

is there a way in jQuery to select elements that have a certain value in a data attribute array? Consider …

jquery html custom-data-attribute
Remove multiple html5 data-attributes with jquery

So jquery api says the following: Removing data from jQuery's internal .data() cache does not effect any HTML5 data- attributes …

jquery html custom-data-attribute
Can I use HTML5 data-* attributes as boolean attributes?

I want to use a custom boolean attribute to mark an element's contents as editable. I'm aware of the data-* …

html custom-data-attribute
jQuery serialize HTML5 data attributes

Couldn't find this anywhere, maybe someone knows or can make a suggestion. I had a form with lots of <…

jquery html custom-data-attribute
CSS selector for custom data-attribute?

Why my star is not appearing in YELLOW ? How to fix it ? Here's the relevant code for the above issue. …

html css css-selectors custom-data-attribute