0
how toFill in the blanks to select all <p> elements, that are children of the element with id="demo".
Fill in the blanks to select all <p> elements, that are children of the element with id="demo".
4 ответов
0
document.querySelector('#demo > p');
0
getElementsByTagName() that will select all the instances of a certain HTML element on the current webpage based on its tag name, i.e. <div> . Calling document. getElementsByTagName("div") is all you need to do to select all <div> elements on the current page using JavaScript.
0
$("#demo p"); or at least this is the answer that sololearn expects.
0
$("#demo p")