Answers for "use .data() to retrieve long data-attributes jquery"

2

jquery select element with data

$('[data-attribute="value"]');
Posted by: Guest on April-01-2020
1

select by data attribute

$('*[data-id="your_id"]');
Posted by: Guest on September-10-2020

Code answers related to "use .data() to retrieve long data-attributes jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language