Find all cells within a specific column and change color on certain characters

Find all cells within a specific column and change color on certain characters

I need to perform the following on my table:

  1. Find a specific column by it's name or class (<th class="ColHeader1" scope="col">ColHeader1</th>)
  2. Within that column I need to find all the cells containing "1"
  3. The cell could contain a string like "1, 2, 3", and then I need to set the color red only on "1".

How can I do this with JQuery?

So here is the table:

  1. <table class="fooBar" width="200" border="0">
  2. <thead>
  3.       <tr>
  4.         <th class="ColHeader1"><b>ColHeader1</b></th>
  5.         <th class="ColHeader2"><b>ColHeader2</b></th>
  6.         <th class="ColHeader3"><b>ColHeader3</b></th>
  7.       </tr>
  8.     </thead>
  9.     <tbody>
  10.       <tr>
  11.         <td>1, 2, 3</td>
  12.         <td>CellData</td>
  13.         <td>CellData</td>
  14.       </tr>
  15.       <tr>
  16.         <td>1, 2, 3</td>
  17.         <td>CellData</td>
  18.         <td>CellData</td>
  19.       </tr>
  20.       <tr>
  21.         <td>1, 2, 3</td>
  22.         <td>CellData</td>
  23.         <td>CellData</td>
  24.       </tr>
  25.     </tbody>
  26. </table>
So this is the result I would expect: