getElementById is a method for finding elements' reference based on a specified id in the current page. This method takes an id selector as the parameter and returns a reference to the corresponding element's reference. Please note that this reference does not allow background threads to hold the elements; background threads can only use this reference to inter thread call element methods across threads, and this reference does not affect the element's lifecycle.
A String type, the id selector of the element to be obtained.
Returns a NodeRef: If the corresponding element is found, a reference to the element is returned; if no corresponding element is found, null is returned.
The reasons that getElementById
may not select nodes are:
LCD tables only load in the browser