Jquery-delete All The Row If First Td Of Row Does Not Have The Id With Given Value
I have a table with many rows. from which i want to delete all the rows except the row, of which first td has a given id. i am in half way Copy
This uses the :has
selector to return rows which contain an element matching the selector. It uses the :not
selector to get the opposite of that (so you end up with all rows that do not contain an element matching the selector), and then uses remove
to remove all elements in the matched set.
Post a Comment for "Jquery-delete All The Row If First Td Of Row Does Not Have The Id With Given Value"