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".

12th Jan 2023, 12:28 PM
cedar
4 odpowiedzi
0
document.querySelector('#demo > p');
12th Jan 2023, 4:29 PM
Reza Mardani
Reza Mardani - avatar
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.
13th Jan 2023, 9:46 AM
william joe
william joe - avatar
0
$("#demo p"); or at least this is the answer that sololearn expects.
24th Jan 2023, 5:41 PM
Michal Dostalek
Michal Dostalek - avatar
0
$("#demo p")
23rd Mar 2023, 12:35 PM
Vithu
Vithu - avatar