Answers for "data-id attribute in jquery"

0

jquery get data-id

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

data id tag

var dataId = $(this).attr("data-id");
Posted by: Guest on March-11-2020
0

data-item-id

// Here's our buttonvar button = document.getElementById('your-button-id'); // Get the valuesvar cmd = button.getAttribute('data-cmd');var id = button.getAttribute('data-id'); // Change the valuesbutton.setAttribute('data-cmd', yourNewCmd);button.setAttribute('data-id', yourNewId);
Posted by: Guest on March-28-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language