Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript short syntax get element

let $ =(el,all=false)=>all ?  document.querySelectorAll(el) : document.querySelector(el);
$("#btnStart") // your element
 
PREVIOUS NEXT
Tagged: #javascript #short #syntax #element
ADD COMMENT
Topic
Name
2+7 =