Tell me how to get a child by css selector or html tag
<div id="block"> <p class="one"></p> <p class="two"></p> <p class="tree"></p> </div> var block = document.getElementById('block'); How to get a paragraph with class two?
I want something like
var paragraph = block.children('.two'); And of course this will not work.
How such things are solved on pure js