Answers for "get the data-id jquery\"

0

jquery get data-id

const dataId = $('#elementId').attr("data-id");
Posted by: Guest on August-13-2020
0

jquery get data-id

$(this).data("id") // will return the number 123
Posted by: Guest on July-18-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language