DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
get element with data attribute javascript
const elements = document.querySelectorAll("li[data-id='2']");
Source by javascriptf1.com #
PREVIOUS
NEXT
Tagged:
#element
#data
#attribute
#javascript
ADD COMMENT
Topic
COMMENT
Name
2+1 =
Submit