Instead, let’s create a … To Use the JavaScript Fetch API to Get Since there is only one body element in any valid HTML document, this list will have only one item, which we retrieve by selecting the first element in that list using [0] . I used HTML DOM “children” Property. Imagine you have a web page with a DIV element that has many other elements nested inside it. Free example code download included. Get Value From JSON Object in JavaScript. JavaScript – Hide Div. JavaScript Then just find the transponders inside #mensagensinbox . The JavaScript getElementByName () is a dom method to allows you to select an element by its name. The responseXML attribute holds an XML document DOM can access, and to provide the equivalent for HTML we need just for a