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.

Custom HTML attribute requires a custom helper?

I'm trying to create a form with some custom data attributes on the inputs: <input type="text" data-family="Dinosaurs"&…

ruby-on-rails form-helpers custom-data-attribute
jQuery.data(key) throwing undefined is not a function

I have some checkboxes which are used to show/hide columns and automatically resize them to fit the screen. I've …

jquery html custom-data-attribute
How do I check if a data-attribute changes?

var max = this.collection.max(function(player) { return player.get('points'); }); I spent a few hours playing with backbone.js …

javascript jquery custom-data-attribute
Accessing data attribute using jquery returns undefined?

Inside my view i have a button as follow: <button data-assigned-id="@IdUser" onclick="updateClick()" type="button" class="btn btn-sm …

jquery custom-data-attribute
jQuery Validate custom messages

I have an input that I want to display a custom error message on when the user doesn't fill it …

jquery html jquery-validate custom-data-attribute
Hidden inputs vs HTML5 data attributes

Something that's been bugging me recently is the use of HTML5 data attributes and when is the appropriate to use …

jquery html custom-data-attribute
CSS data attribute conditional value selector?

Given html such as : <div data-points="800">Jonh</div> <div data-points="200">Jack</div> &…

css html css-selectors custom-data-attribute
How to add data-attribute to the form tag in simple_form?

I'm using garlic.js to validate my forms. Garlic.js recommends adding a data-attribute on the form tag. Here's what …

ruby-on-rails simple-form custom-data-attribute
Parsing HTML5 data-* attribute values with Selenium in Python

I am parsing a JS generated webpage like so: from selenium import webdriver from selenium.webdriver.common.by import By …

python html parsing selenium custom-data-attribute
Inserting custom data attributes into JQuery DataTables

Problem: I am using JQuery DataTables v1.10 for a work-related project. The project requires a Datatable to be defined and …

jquery jquery-datatables custom-data-attribute html5-data