Answers for "js get custom attribute"

0

js get custom attribute

document.getElementById("divId").getAttribute("attributeId");
Posted by: Guest on June-15-2021
0

javascript get element by custom attribute

document.querySelector("div[data-automation='something']")

Select element by custom attribute
Posted by: Guest on September-05-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language