Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Select First Element querySelector

 const p =  document.querySelector("p");
 console.log(p.innerHTML);
/*first*/

 <p>first</p>
 <p>second</p>
 <p>third</p>
 <p>fourth</p>
 
PREVIOUS NEXT
Tagged: #Select #First #Element #querySelector
ADD COMMENT
Topic
Name
2+3 =