Counting the selectedCell class
I'm trying to count the number of selected cells with class="selectedCell" for each row in the following code.
- $(function(){
- var output = $('table').find('td.selectedCell').length + ' selected cells';
- $(".tdoutput").html(output);
- });
I have a working example here, but the count shows the same for each row, and instead it shows the total count for the table.