K
Kabindra
How do i list all the HTML Elements inside a DIV with specific
attributes?
<div id="div1">
<a href="#" rel="tab1">Link 1</a>
</div>
<div id="div2">
<a href="#" rel="tab2">Link 2</a>
<a href="#" rel="tab2">Link 3</a>
<a href="#" rel="tab2">Link 4</a>
</div>
<div id="div3">
<a href="#" rel="tab3">Link 5</a>
<a href="#" rel="tab3">Link 6</a>
<a href="#" rel="tab3">Link 7</a>
</div>
from above I would like to get a elements with rel="tab2"
i.e output should be
list of a tags inside the div2
attributes?
<div id="div1">
<a href="#" rel="tab1">Link 1</a>
</div>
<div id="div2">
<a href="#" rel="tab2">Link 2</a>
<a href="#" rel="tab2">Link 3</a>
<a href="#" rel="tab2">Link 4</a>
</div>
<div id="div3">
<a href="#" rel="tab3">Link 5</a>
<a href="#" rel="tab3">Link 6</a>
<a href="#" rel="tab3">Link 7</a>
</div>
from above I would like to get a elements with rel="tab2"
i.e output should be
list of a tags inside the div2