Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-03-2008, 11:50 PM   PM User | #1
NancyJ
Senior Coder

 
NancyJ's Avatar
 
Join Date: Feb 2005
Location: Bradford, UK
Posts: 3,162
Thanks: 19
Thanked 65 Times in 64 Posts
NancyJ will become famous soon enough
Removing Element from jQuery

I need to remove an element - properly. Using $('#id').remove() removes the element from the dom but not from jQuery - but I need to get rid of it completely and I can't find any way to do that.

Basically I'm creating a tooltip script and if I try to show and hide the div in its current place, the positioning is relative to its parent's container, but the co-ordinates I have are relative to the viewport - using $('body').append works in FF but in IE, it still uses the old copy of the item that exists in jQuery (even after removing it)

I've also tried cloning the element but the same problem exists - 2 items with the same id in jQuery - there must be a solution to this problem?
__________________
http://www.hazelryan.co.uk
NancyJ is offline   Reply With Quote
Old 06-10-2008, 04:21 PM   PM User | #2
malfist
Regular Coder

 
Join Date: May 2008
Posts: 188
Thanks: 7
Thanked 7 Times in 7 Posts
malfist is an unknown quantity at this point
You many not be removing the right object, have you tried removing the parent? Could you post up some code?
malfist is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:29 PM.


Advertisement
Log in to turn off these ads.