Select table cells based on the value in the cell
<p>I have a table as shown in <a href="http://jsfiddle.net/Lijo/UqdQp/4/" rel="nofollow">http://jsfiddle.net/Lijo/UqdQp/4/</a>. I need to set background color as red for all columns that has value “1”.  What is the best way (in terms of performance) for doing this using jQuery? </p>

<p>Note: After doing the background color, I need to alert the value of the table cell also. That means I need to use “this” operator on the selected cell.</p>

<p><strong>Reference Answers:</strong></p>

<ol>
<li><a href="http://jsfiddle.net/Lijo/uGKHB/11/" rel="nofollow">http://jsfiddle.net/Lijo/uGKHB/11/</a></li>
<li><a href="http://jsfiddle.net/Lijo/uGKHB/12/" rel="nofollow">http://jsfiddle.net/Lijo/uGKHB/12/</a></li>
<li><a href="http://stackoverflow.com/questions/1166452/finding-column-index-using-jquery-when-table-contains-column-spanning-cells">Finding column index using jQuery when table contains column-spanning cells</a></li>
</ol>
