Reference all the stuff you need first. Var $row = $(row), $.
When dealing with large amounts of table data your users can easily become lost, so making things as readable as possible is important. Using CSS to create striped table rows and columns will allow the eye to remain in the correct place as a user scrolls through the data.
Columns would be accessed using the "col" variable assigned in the for loop } }. If you just want to go through the cells(<td>), ignoring which row you're on, then this is the way to go.
Remove all highlighted text passing all em tags removeHighlighting($("table tr em")); $(".