I have a lot of element in one div, for ex:
<div>
<p></p>
<span></span>
<div class="text"></div>
<span></span>
<div class="text"></div>
<div class="text"></div>
I want to select the first .text
so I used .text:first-of-type
but it doesn't work, only works for span:first-of-type
Can anybody show me how to select the first .text
?