You can simply use the jQuery attr() method to find the data-id attribute of an HTML element.
You can also use the jQuery data() method (jQuery version >= 1.4.3), to get the data-attribute of an element.
Syntax like
You can simply use the jQuery attr() method to find the data-id attribute of an HTML element.
You can also use the jQuery data() method (jQuery version >= 1.4.3), to get the data-attribute of an element.
Syntax like