javascript - How to delete table rows of specific class? -
i have html table few rows. in few rows someclass applied.
my request how can delete rows of specific class type?
<table> <tr class="someclass"> ...</tr> <tr class="someclass"> ...</tr> <tr class="anotherclass"> ...</tr> <tr class="someclass"> ...</tr> </table> now have delete rows class type someclass using jquery. how can that?
thanks!
$('table tr.someclass').remove();
Comments
Post a Comment