1. document.getElementById("id") = Target the DOM through Id.
2. document.getElementsByClassName("Class_name") = Target the DOM through classname.
3. document.getElementsByTagName("Tag_name") = Target the DOM through tagname.
Note :- we can also style and change the value of element through these JavaScript methods.
If you like my video then please like,subscribe and share my channel for upcoming video.
0 Comments