Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

when to use getelementbyid and queryselector

The querySelector method lets you retrieve an element using a CSS selector query. The getElementById method retrieves an element by its DOM ID.
Source by careerkarma.com #
 
PREVIOUS NEXT
Tagged: #getelementbyid #queryselector
ADD COMMENT
Topic
Name
4+9 =