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

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -