Wednesday, November 30, 2011

Remove table using index number in jquery

Suppose you are sure that u need to remove 2nd table of the page,you can do this by using index
index starts with 0

$('table:eq(1)').remove();

The same concept can be applied for any elements

No comments:

Post a Comment