I would like to calculate unique words count in a table with jQuery or maybe SQL. I have no clue at the moment how to do this. So please forgive me when i dont give you my tries.
This is the table:
<table>
<tr class="odd">
<td>450€ Job</td>
<td>Aachen</td>
</tr>
<tr class="even">
<td>500€ Job</td>
<td>Berlin</td>
</tr>
<tr class="even">
<td>500€ Job</td>
<td>Berlin</td>
</tr>
</table>
I would like to get somthing like this:
Aachen (1)
Berlin (2)
Do you have any ideas? Thank you very much!
Best regards
Here how I would do it using JavaScript. This code calculates words for whole table. If you need to run it for the row, you should modify it appropriately.
http://jsfiddle.net/4LSgC/ (see console)