Consider following HTML snippet:

<div>
    <h3>Hello World</h3>
    <p>Hello <span class="name">Mr Quiz</span>!</p>
    <p>
        <span>My name is James</span>
    </p>
    <fieldset>
        <legend>Текст</legend>
        <p>Текст</p>
    </fieldset>
</div>
How many <p> element will select the $("div p") jquery selector?
Explanation
$("div p") will select all <p> element that are inside the div element.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
JavaScript quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes