DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
select element by data attribute
var row = document.querySelector('[data-id="' + row_id + '"]');
PREVIOUS
NEXT
Tagged:
#select
#element
#data
#attribute
ADD COMMENT
Topic
COMMENT
Name
4+2 =
Submit