Selecting html elements with jquery based on div and some other attribute -
this question has answer here:
- selecting element data attribute 10 answers
i have html code:
<p class="test" data-id=1>some value</p> <p class="test" data-id=2>some value</p> <p class="test" data-id=3>some value</p> <p class="test" data-id=4>some value</p>
how can select <p>
element based on data-id
?
Comments
Post a Comment