$("tr").remove()

Just make sure that you're referencing a SPECIFIC tr, e.g.

$("tr").click(function() {
   $(this).remove();
}

But again - bear in mind that that removes it from the CURRENT PAGE ONLY, so "refreshing" (either a span or the whole page) will "bring it back".

As advised by myself and others, the issue you're encountering isn't a "refresh" - it's a "what is 'delete' meant to do ?

L

bharani kumar wrote:
am just intermediate in jquery ,

so am not understand the remove TR, but i asked to google ,

Let we see the response


thanks for reply

On Fri, May 22, 2009 at 4:56 PM, Liam Byrne <l...@onsight.ie> wrote:
The issue is what exactly you are trying to achieve when the user "deletes
the required row".

If it's purely client side, then it's "hide" rather than delete. You could
achieve this by

1) Display the page using a session variable to determine which rows to show
2) Call an ajax function to set a session variable
3) do a jQuery "remove" on the TR

But if it's meant to do something server-side (e.g. delete a record from a
database, or mark a record as unwanted in a "preferences" table, then you'll
need to do exactly that via a server-side function; the "refresh" that you
requested would do the exact same as a page refresh, if it were available.

1) Call an ajax function to do just that - delete or mark the record
2) do a jQuery "remove" on the TR


Liam

bharani kumar wrote:
Why asking this question ? you know ,

For example ,

there is a three links
one,two,three,

When one is clicked around 50 rows data will be displayed ,

there user can delete the required row, assume if i give the page
refresh , then user have to click the link again ,

Assume if is there any function do somthing link refresh span , means ,

That span contained rows will refresh , then will will not affect ,
thats y am asking ,,,

thanks in advance

On Fri, May 22, 2009 at 12:30 AM, Liam Byrne <l...@onsight.ie> wrote:

What do you mean "refresh span" ?

You can reset the content of a particular SPAN using
$(spanReference).html("NEW CONTENT") or $(spanReference).text("NEW
CONTENT")

But unless you've changed the content of the SPAN (using one of the
above,
in which case you already know it), what's there to refresh ?

L

bharani kumar wrote:

Hi All,

How to Refresh SPAN without page refresh ,

Can you tell name of the jquery function ,

--
?????? ??????
???? ??????

Regards
B.S.Bharanikumar

POST YOUR OPINION
http://bharanikumariyerphp.site88.net/bharanikumar/
------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database:
270.12.35/2124 - Release Date: 05/20/09 06:22:00




 ------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database:
270.12.36/2128 - Release Date: 05/22/09 06:03:00





------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.36/2128 - Release Date: 05/22/09 06:03:00


Reply via email to