It works!  Thank you Liam.
jake

On Aug 19, 11:22 am, Liam Potter <radioactiv...@gmail.com> wrote:
> $("#tbl tbody tr:not(:first-child)").remove();
>
>
>
> con-man-jake wrote:
> > Can anyone please confirm the syntax of what I am doing
>
> > I have a table with id="tbl", it has 4 rows.  I need to remove all
> > rows except the first one.
>
> > It has "tbody".
>
> > Is this the way to do it
>
> > $("#tbl > tbody > tr:gt(0)").remove();
>
> > If this is the way to do it, it is not working.
>
> > Any help is appreciated.
> > jake

Reply via email to