[jQuery] find table rows that contains text
Hi,
I am trying to get a reference to a table row that contains an
exact match of a text. But I am getting more than one row. can you
please help me? Following is the html table structure and the jquery
script.
-- html
<table>
<tr>
<td><a>063</a></td>
</tr>
<tr>
<td><a>63</a></td>
</tr>
</table>
-- script
var rows = $('table tr:contains(' + "'" + '63' + "'" + ')');
as you can see, both the rows contain text 63. But I want to get the
reference to second row since that contains the exact match. How would
I do that?
Thanks,
sridhar.