I have logfile data, and I want to use jQuery to count how many entries each "site" has. Further, I'd like to do something (maybe change the background color of) sites that have multiple entries:
<tr><td class='site'>123456</td><td>70</td><td>10.32</td><td>2014-03-04</td></tr>
<tr><td class='site'>123457</td><td>73</td><td>8.95</td><td>2014-03-03</td></tr>
<tr><td class='site'>123458</td><td>61</td><td>1.37</td><td>2014-03-05</td></tr>
<tr><td class='site'>123457</td><td>68</td><td>12.26</td><td>2014-03-04</td></tr>
<tr><td class='site'>123457</td><td>95</td><td>15.31</td><td>2014-03-05</td></tr>
<tr><td class='site'>123456</td><td>58</td><td>1.31</td><td>2014-03-05</td></tr>
<tr><td class='site'>123459</td><td>65</td><td>11.06</td><td>2014-03-05</td></tr>
So, from the html above, I would put the following totals into a div:
Site Issues 123456 2 123457 3 123458 1 123459 1
...and I would highlight the two sites that have multiple entries (123456 and 123457) in the table. Can you point me in the right direction?
P.S. I'm already using "tablesorter" to sort the rows. Really handy plugin!