title: bootstrap-table - how to set table row background color
body: <p>I'm using bootstrap table. If I set the  color in the style attribute, it gets removed by bootstrap-table, so what I've done is I added an attribue like "data-rowcolor" and then used a javascript to apply the color:</p>
  
  <pre><code>$('td[data-rowcolor]').attr("style", "background-color:yellow;");
  </code></pre>
  
  <p>The problem with this approach is that when I use the search box to filter things, the colors disappear.
  Any ideas how to be able to set the color without losing it?</p>
  
  <p>Maybe I should set the color in the onSearch callback but I'm not sure how it works. I've seen the <a href="http://bootstrap-table.wenzhixin.net.cn/documentation/" rel="nofollow noreferrer">doc</a>.</p>