I thought it would be pretty simple, but it seems that an empty method does not work to clear yours which I have. I would appreciate if anyone knows the right way to do this, I just want to remove everything in the body. While I'm trying:
$("#tbodyid").empty();
HTML:
<table> <tbody id="tbodyid"> <tr><td>something</td></tr> </tbody> </table>
NOTE. I am trying to do this in order to integrate with a plugin written by someone else that I use for a project. I am creating a new server side <tr><td>new data</td></tr> and I just want to erase the existing table rows and replace them with AJAX callbacks.
javascript jquery html
Rick Feb 13 2018-11-11T00: 00Z
source share