Answers for "how to select and element by attribute in javascript"

1

js get element by attribute

//find first element with "someAttr" attribute
document.querySelector('[someAttr]')
Posted by: Guest on November-13-2020

Code answers related to "how to select and element by attribute in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language