This selector $('td:last-child, :input') will add a red outline to the matched elements. This nifty jQuery plugin uniqueValues() will return an array of unique values found in the collection.

# Fruit Color
1 Apple Red
2 Banana Yellow
3 Cherry Red
4 Coconut Brown
5 Grape Purple
6 Lemon Yellow
7 Orange Orange
8 Pear Green
9 Plum Purple
10 Hamburger

Unique Colors: