Object function reference

get_element_by_id

A reference entry for get_element_by_id

Object function · DOM

get_element_by_id(string id) ⇒ mixed

Returns the first element whose id attribute exactly matches id. Returns undefined when no matching element exists.