I seems to work, but when i show the page-source i cant see the new
rows. But they are visible in the browser. Its very strange.

On Jul 9, 5:31 pm, "..:: sheshnjak ::.." <[EMAIL PROTECTED]> wrote:
> You can easily remove any row that you selected, only question is if
> you can select apropriate rows.
>
> $("table tr").remove(".remove");     // removes any table rows that
> have class="remove"
>
> or like this
>
> $("table tr").filter(":contains(unwantedText)").remove();    //
> removes any row containing string "unwantedText"
>
> Only thing you have to watch is that your query is TR element (that
> was your problem, right?).
> If you filter by some other condition, for example children elements,
> then do this:
>
> $("table tr a.remove").parent().remove();    // query is A tag with
> class="remove", so you escape it with .parent()
>
> Same thing goes with adding rows, just use .after("<tr>Insert this
> row</tr>") or .before("<tr>Insert this row</tr>") methods.

Reply via email to