Answers for "js target by attribute"

3

get attribute values in js with event.target object

event.target.getAttribute("data-sortorder");
Posted by: Guest on October-15-2020
4

javascript select element with attribute

document.querySelectorAll('[attrname="value"]');
Posted by: Guest on June-02-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language