I am having following code in my HTML.
<li class="strange">1</li>
<li class="strange">2</li>
<li class="strange">3</li>
<li class="strange">4</li>
I want to choose the exact li which contains number '3' as a Text. Is there any method to choose the exact element. Can we choose by using some OO-JS methods?
Aucun commentaire:
Enregistrer un commentaire