How to get data-id attribute value in jQuery
I am going to share you how to get data-id attribute value in jQuery. 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.