I understand. I am completely new to jQuery Development, so i think i will post more of those beginner questions in the future. Thank you!
On 9 Jul., 22:54, Carl Von Stetten <[EMAIL PROTECTED]> wrote: > Yavuz, > > That's because view source only shows the HTML as it was originally > loaded. It does not show any DOM changes that may have been made after > the page was initially loaded. If you have Firefox, and install the > Developer Toolbar, the View Source pulldown on the toolbar offers "View > Generated Source", which will show you exactly what your source looks > like with any DOM changes included. Even better, the FireBug plugin for > Firefox allows you to look at the source, and even watch it change in > real time as your javascript manipulates the DOM. > > Carl > > Yavuz Bogazci wrote: > > 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.