0
What is the difference between using $("div p") and $("div >p")
3 Respostas
0
From SoloLearn's jQuery course:
https://www.sololearn.com/learn/jQuery/2790/
0
"div p" target all p elements wich are child of a div element, even if it's not its direct parent, such as:
<div><pre><p>targeted element</p></pre></div>
"div > p" target only p elements wich are direct child of a div element (so previous p example will not be selected).
0
Thanks for replying answer.