December 2013
Intermediate to advanced
384 pages
9h 54m
English
var containerObj = document.getElementById("myDiv");
The simplest method to find an HTML element is to use the value of the id attribute with the document.getElementById(id) function. The document.getElementById(id) function searches the DOM for an object with a matching id attribute. If that object is found, the function returns the DOM object.
Read now
Unlock full access