SyntaxFix
Write A Post
Hire A Developer
Questions
wrapped in a function:
function remove_rows(tablename) { $(tablename).find("tr:gt(0)").remove(); }
then call it:
remove_rows('#table1'); remove_rows('#table2');