Search
 
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
Name
9+1 =