[jQuery] Re: Opposite of .append

2007-07-05 Thread Benjamin Sterling
Very good call Klaus. On 7/5/07, Klaus Hartl <[EMAIL PROTECTED]> wrote: Benjamin Sterling wrote: > If the cell is can be emptied after mouseout do $(selector).empty(); Otherwise try this: var appendable = $('Append me'); $('#mouseover').hover( function() { appendable.appendTo

[jQuery] Re: Opposite of .append

2007-07-05 Thread Klaus Hartl
Benjamin Sterling wrote: If the cell is can be emptied after mouseout do $(selector).empty(); Otherwise try this: var appendable = $('Append me'); $('#mouseover').hover( function() { appendable.appendTo('#append-here'); }, function() { appendable.remove(); // rem

[jQuery] Re: Opposite of .append

2007-07-05 Thread Benjamin Sterling
If the cell is can be emptied after mouseout do $(selector).empty(); On 7/5/07, arno <[EMAIL PROTECTED]> wrote: Hi, guys I tried to use the .append function on a mouseover event, but I can't find a way to un-append the text I added on mouseout. Am I missing something obvious? Thx Arno