JQuery clear all rows after the first row? -
given follow:
<table id="mytable"> <tr> </tr> <tr> </tr> ... </table>
i can clear table doing: $("mytable").html("");
but, i'd instead clear rows first one. ideas?
$('#mytable tr:gt(0)').remove()
Comments
Post a Comment