title: How can add database table ID into table row as class or ID
body: <p>I want to add database table ID to table row as a class or ID.</p>
  <pre><code>$.each(response.sellorderbookdata, function(key, item) {
    if (item.total !== 0) {
      $(&quot;tr&quot;).addClass(item.id);
      $('tbody.sellbook').append('&lt;tr&gt;\
       &lt;td class=&quot;red-bg-100&quot;&gt;' + item.price + '&lt;/td&gt;\
       &lt;td class=&quot;pink-bg-90&quot;&gt;' + item.amount + '&lt;/td&gt;\
       &lt;td class=&quot;white-bg-70&quot;&gt;' + item.total + '&lt;/td&gt;\
       &lt;/tr&gt;');
    }
  });
  }
  </code></pre>
  <p>Will it work?  The data inside table rows are dynamically pulled from a database. It needs to update whenever data is retrieved and I want to replace some text value in the table cell by mention table row.</p>
  <p>How can I make it work?</p>