title: How to give red color for rows on html table that have different values on same row?
body: <p><strong>How to give red color for rows on  HTML table that have different values on the same row ?</strong></p>
  
  <p>I need  when at least one cell from row  different from each other</p>
  
  <p>then give red font to full row </p>
  
  <p>if you see below the row that has the same value on all cells not changed color.</p>
  
  <p>I need function give red color for the row that have at least one value different from others on the same row</p>
  
  <p>so How to make the function do that by jquery or javascript  do red color for a row if it has</p>
  
  <p>at least different cell values.</p>
  
  <p><a href="https://i.stack.imgur.com/weNIJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/weNIJ.png" alt="rows have different values give red rows font"></a></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
  &lt;table border="1"&gt;
  &lt;col width="500"&gt;
  &lt;col width="500"&gt;
  &lt;col width="500"&gt;
  &lt;col width="500"&gt;
  &lt;tr bgcolor="#6699FF" width="100%"&gt;
      &lt;th&gt;Part1&lt;/th&gt;
      &lt;th&gt;Part2&lt;/th&gt;
      &lt;th&gt;Part3&lt;/th&gt;
      &lt;th&gt;Part4&lt;/th&gt;
  &lt;tr&gt;
      &lt;td&gt;12&lt;/td&gt;
      &lt;td&gt;12&lt;/td&gt;
      &lt;td&gt;12&lt;/td&gt;
      &lt;td&gt;12&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;12&lt;/td&gt;
      &lt;td&gt;15&lt;/td&gt;
      &lt;td&gt;12&lt;/td&gt;
      &lt;td&gt;12&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;17&lt;/td&gt;
      &lt;td&gt;15&lt;/td&gt;
      &lt;td&gt;13&lt;/td&gt;
      &lt;td&gt;12&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  
  
  &lt;button id="button"&gt;Click Me&lt;/button&gt;
  &lt;/body&gt;
  
  
  &lt;/html&gt;
  </code></pre>