How to use each() to addClass for every matching row_id
I would like to know if it's possible to use each() to add a css class
that would highlight each matching table row using JQuery. What I have is
a PHP array of keys that I would like to match up to the corresponding
table row ids. I'm still learning JQuery so I'm not that familiar with how
this can be done.
Can someone either point me to a thread that shows this or maybe show me
an example?
My table looks like this:
<table id="table1">
<tr id="row_23">
<td>row 23</td>
</tr>
<tr id="row_24">
<td>row 24</td>
</tr>
<tr id="row_25">
<td>row 25</td>
</tr>
</table>
...
No comments:
Post a Comment