What does this code means.?

Let’s understand statement step by step



It finds the table with id (table_data)


this will find the elements on the basis of selector here as selector is "tr:not(:first)" so it will find all the tr except first one. Finally there is .remove() that will remove the selected rows.

So the complete statement will remove all the rows except first one

Browse More Popular Posts

Leave a Comment