title: How to change row color in JQuery Datatable
body: <p><strong>Problem Statement:</strong> change the color of the table row, with respect to status: </p>
  
  <blockquote>
    <p>if status is <strong>active, row color is green</strong>, if <strong>inactive, row color is red/yellow.</strong></p>
  </blockquote>
  
  <p>I've tried many ways, but I think bootstrap table is forcing not to change the row color. Please guide me how do I do it?</p>
  
  <p>Data:</p>
  
  <pre><code>[  
     "active",
     "inactive"
  ]
  </code></pre>
  
  <p>TABLE:</p>
  
  <pre><code>&lt;table id="employee" class="table table-striped table-sm table-hover"&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Status&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>JQuery Datatable:</p>
  
  <pre><code>$('#employee').DataTable({
  
      "aaData": dataOrPathToData,
      "aoColumns": [
  
          {"mDataProp":"status", "render": function(data, type, row, meta) {
  
              if( type==='display' ) {
                  data = '&lt;a&gt;' + data  + '&lt;/a&gt;';
              }
              return data;
          }}
      ]
  
  });
  </code></pre>
  
  <p>I am trying to produce an output like this:
  <a href="https://i.stack.imgur.com/sxW1E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sxW1E.png" alt="enter image description here"></a></p>
  
  <p>Thanks.</p>