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

mod rewrite - Doing external redirect. .htaccess NS flag not working. How to achieve similar results? -

mysql - How to insert just year and month into date field? -