I have a list like below.
<ul class="groupList" id="groupList">
<li id="group1">
<div class="1">
......
</div>
<div class="2">
<select class.....>
<input type="hidden" value="blah" id="groupField1" name="groupField1"/>
</div>
</li>
<li>....</li>
<li>....</li>
</ul>
How can i get the “li” element which has hidden text of value blah.There can be several “li” element which have a hidden text of value “blah”.
For a version that will work on older browsers too…
jsFiddle.
If using jQuery…
jsFiddle.