title: How to change the background color or a Table cell depending on other column value in Jquery Datatable?
body: <p>How to change the background color or a Table cell depending on other column value in Jquery Datatable ??</p>
  
  <p>In this fiddle <a href="http://jsfiddle.net/5fbo72rm/4/" rel="nofollow">http://jsfiddle.net/5fbo72rm/4/</a></p>
  
  <p>The table has got three coulmns <strong>Name ,Price and Quantity</strong> .</p>
  
  <p>How can i change the background color of that  Name cell if the quantity is greater than 40000</p>
  
  <pre><code>&lt;table id="allwl"&gt;
      &lt;th class="hidden-480"&gt;Price&lt;/th&gt;
      &lt;th class="hidden-480"&gt;Volume&lt;/th&gt;
      &lt;th class="hidden-480"&gt;Quantity&lt;/th&gt;
  &lt;/table&gt;
  
  var dataSet = [
      [
          "1441.75",
          "100"],
      [
          "1614.45",
          "50"
  
      ],
      [
          "834.15",
          "3000"]
  
  ];
  
  var array_names = ["APPLE", "WHIRLPOOL", "SAMSUNG"];
  
  for (var key in dataSet) {
      if (dataSet.hasOwnProperty(key)) {
          dataSet[key].splice(0, 0, array_names[key]);
      }
  }
  
  $(function () {
      $('#allwl').dataTable({
          "iDisplayLength": -1,
              "data": dataSet,
              "columns": [{
              "title": "Name"
          }, {
              "title": "Price"
          }, {
              "title": "Quantity"
          }]
      });
  })
  </code></pre>
  
  <p>I have tried with createdcell , but that is only working with that particuarlar cell ,not for other cell </p>
  
  <p>Could anybody please help me ,how to resolve this ??</p>
  
  <p><a href="http://jsfiddle.net/5fbo72rm/6/" rel="nofollow">http://jsfiddle.net/5fbo72rm/6/</a></p>