Answers for "get data attribute element jquery"

4

jquery get data attribute

<a data-id="123">link</a>


var id = $(this).data("id"); // Will set id to 123
Posted by: Guest on April-16-2020

Code answers related to "get data attribute element jquery"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language