Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Bradford, UK
    Thanked 66 Times in 65 Posts

    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?

  • #2
    Regular Coder
    Join Date
    May 2008
    Thanked 7 Times in 7 Posts
    You many not be removing the right object, have you tried removing the parent? Could you post up some code?


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts