I need a little help to put me in the right direction. This is what I am trying to achieve.
I have a table of data e.g.
<table><thead>
<tr><th>Categories</th><th>Week 1</th><th>Week 2</th><th>Week 3</th></tr>
</thead>
<tbody>
<tr><td>Category 1</td>
<td>Sam: 5 <br /> Roger 10</td>
<td>Sam: 0 <br /> Roger 5</td>
<td>Susan: 25 <br /> Aimee 15</td>
</tr>
<tr><td>Category 2</td>
<td>Sam: 5 <br /> John: 15</td>
<td>Sam: 0 <br /> Roger: 15</td>
<td>Susan: 25 <br /> Aimee: 15</td>
</tr>
</tbody></table>
These are the users who have number assigned in the table above.
<ul>
<li><a href="#">John</a></li>
<li><a href="#">Roger</a></li>
<li><a href="#">Aimee</a></li>
<li><a href="#">Sam</a></li>
<li><a href="#">Susan</a></li>
</ul>
I was hoping to create a filter using JQuery so that if I wanted to see John only in the table above I would click against that name in the list above. I have complete control over the markup so I can wrap user names in the table with required classes (for selecting) or add any additional code etc.
How do I achieve that? I have limited experience using Jquery so any help would be appreciated. Thanks