Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get element by

const elem_by_id = document.getElementById("id");
const elem_by_name = document.getElementsByName("name");
const elem_by_tag = document.getElementsByTagName("tag");
const elem_by_class = document.getElementsByClassName("class");
 
PREVIOUS NEXT
Tagged: #element
ADD COMMENT
Topic
Name
9+9 =