I just found out that i’ve been searching for how to delete table row using jquery for many times. Although i manage to find the answer each time, it seems can’t remember the function. So this post will be one of my notes to remind me about this!
To delete table row in jQuery, try the code below:-
Advertisements
-
// html table <table> <tr id="row_no_1"> <td>Remove this row</td> </tr> <tr id="row_no_2"> <td>Keep this row</td> </tr> </table>
// javascript call $("#row_no_1").remove();
Related posts:
Easy to use jQuery Lightbox - Fancybox
Javascript: Prevent page from frameset hijack
Javascript: open new window with window.open()
How to detect checkbox being checked using javascript
jQuery: disable autoscrolling to top when click on anchor
WordPress: How to open rss links in new window?
How to validate drop down list in Javascript?
jQuery: How to refresh select box
Share this with your friends:-