title: datatales server side add class tr
body: <p>how to add id to the specific td element? I want to color some tr element text to red, yellow and blue - if user expired add red text color, if expiring in next 2days add yellow and so on...</p>
  
  <p>i im using server side php script to generate datatables data and then send using json.</p>
  
  <p>here is what i ime getting from server side:</p>
  
  <pre><code>&lt;tr class="gradeA odd" id="3650"&gt;
     &lt;td class=" sorting_1"&gt;3650&lt;/td&gt;
     &lt;td class=""&gt;user234&lt;/td&gt;
     &lt;td class=""&gt;2013-12-28&lt;/td&gt;
     &lt;td class=""&gt;2014-01-28&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>i would like to get this:</p>
  
  <pre><code>&lt;tr class="gradeA odd" id="3650"&gt;
     &lt;td id="red" class=" sorting_1"&gt;3650&lt;/td&gt;
     &lt;td id="red" class=""&gt;user234&lt;/td&gt;
     &lt;td id="red" class=""&gt;2013-12-28&lt;/td&gt;
     &lt;td id="red" class=""&gt;2014-01-28&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>so how to add id on server-side.php here is that skript:
        <a href="http://datatables.net/examples/data_sources/server_side.html" rel="nofollow">http://datatables.net/examples/data_sources/server_side.html</a></p>
  
  <p>i im new to datatables and jquery.</p>