hi im trying to find a tr inside an array of tr's the attribute name is docId
is there anykind of jquery selector for this?
i dont want to just iterate throught the array with a for loop and find it myself.
unlesss you will say i have no choice...
thank you
hi im trying to find a tr inside an array of tr's the attribute name is docId
is there anykind of jquery selector for this?
i dont want to just iterate throught the array with a for loop and find it myself.
unlesss you will say i have no choice...
thank you
Share Improve this question edited Aug 18, 2010 at 6:12 Reigel Gallarde 65.3k21 gold badges125 silver badges142 bronze badges asked Aug 18, 2010 at 6:08 Guy SchallerGuy Schaller 4,7104 gold badges33 silver badges55 bronze badges2 Answers
Reset to default 5if you already have the array of trs on hand, and you got them through a jquery selector
array.filter('tr[attr=val]')
may be what you need.
$('tr[name=docId]')
That makes usage of the 'Attribute equals` selector. If your're dealing with a jQuery wrappet set, this is probably what you want.
Even, if that selector internally will also iterate over the set.
Ref.: Attribute Equals