[jQuery] Finding items in an UL by their LI's Attributes

[jQuery] Finding items in an UL by their LI's Attributes


Hello,
I've been trying to work this out for a bit now but seem to have come
a bit unstuck.
I'd like to be able to use .find to search an <UL> element and find
out if there are any items with two attributes the same as a search
choice.
i.e. : My UL looks like this :
<ul>
<li id="1" typeref="E" typeid="1">Element 1</li>
<li id="2" typeref="E" typeid="2">Element 2</li>
</ul>
I would like to do a search of the above UL and get back the id of the
first LI element you can see in the list there by doing a search for
typeref="E" && typeid="1". Is that possible using Jquery?
Any help would be very very gratefully recieved!
Regards,
Paul Hutson