Address :- New Delhi Contact :- 8882880965
STP COMPUTER EDUCATION
The Best Quality of Software Programming Computer Education
[Link]
SUBJECT :- WEB DESIGNING
Chapter - 10
Selectors in JavaScript
Selectors are used to select html elements to perform some task and
actions on html elements.
There are so many Selectors in JavaScript .
1. getElementsByTagName() : select HTML element through tag name.
2. getElementsByName() : select HTML element through the value of
name attribute.
3. getElementById() : select HTML element through the value of id
attribute.
4. getElementsByClassName() : select HTML element through the
value of class attribute.