title: How to add a CSS table-striped class to dynamically generated row in jQuery Datatable?
body: <p>So I know that if you do addClass(myCSSClass), it should add said class to the datatable row.</p>
  
  <p>My problem is that this doesn't seem to work.</p>
  
  <p>My code is like below: </p>
  
  <pre><code>var table = ('#datatable').Datatable();
  table.row.add(['&lt;button type="button" id="Details"&gt;A button&lt;/button&gt;']).addClass("success").draw();
  </code></pre>
  
  <p>The addClass() function is mentioned in the datatables documentation. But it doesn't work with <em>bootstrap table-striped class</em> <strong>success</strong>.</p>
  
  <p>I need the <em>table-striped class</em> <strong>'success'</strong> to be added to the row I am creating in my Datatable. How can I get this to work?</p>