Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #20033
| From | Christoph Becker <cmbecker69@gmx.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: I want to use the passed argument to clear the table |
| Date | 2013-05-29 14:20 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <ko4rq5$hi4$1@speranza.aioe.org> (permalink) |
| References | <ko4r9n$fuj$1@dont-email.me> |
Tony wrote:
> If I use this row
> $("#myGrid tr:gt(0)").remove();
> It works and all rows except the first one is removed in table with
> id=myGrid
>
> But if I use the passed argument which is myGrid in
> this row
> $("#" + tableID + "tr:gt(0)").remove();
> it does't work.
>
> How should I write ?
Just do an
alert("#" + tableID + "tr:gt(0)");
and you'll probably can spot the error. :)
--
Christoph M. Becker
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
I want to use the passed argument to clear the table "Tony" <tony.johansson@inport.com> - 2013-05-29 14:15 +0200
Re: I want to use the passed argument to clear the table Christoph Becker <cmbecker69@gmx.de> - 2013-05-29 14:20 +0200
Re: I want to use the passed argument to clear the table "Tony" <tony.johansson@inport.com> - 2013-05-29 14:40 +0200
Re: I want to use the passed argument to clear the table Denis McMahon <denismfmcmahon@gmail.com> - 2013-05-29 13:14 +0000
Re: I want to use the passed argument to clear the table "Tony" <tony.johansson@inport.com> - 2013-05-29 17:14 +0200
csiph-web