Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8074735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:45:10+00:00 2026-06-05T14:45:10+00:00

I just want a confirmation about what I’m doing in my app. I created

  • 0

I just want a confirmation about what I’m doing in my app.

I created some jquery plugins which add some elements and events in the DOM of my page.

For example, I init the plugin in a DOM element of my page:

$("#myplugin_container").myplugin('init', {'data':mydata});

What I want to know : if I remove the container with remove function

$("#myplugin_container").remove();

, will I have memory leaks on the plugin or will the jquery object be removed correctly ?

I hope my explanations are clear…

Thanks !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T14:45:12+00:00Added an answer on June 5, 2026 at 2:45 pm

    jQuery will remove all event handlers and other data associated with the element when you use .remove(), so there shouldn’t be any memory leaks.

    From jQuery documentation of remove():

    Similar to .empty(), the .remove() method takes elements out of the DOM. Use .remove() when you want to remove the element itself, as well as everything inside it. In addition to the elements themselves, all bound events and jQuery data associated with the elements are removed. To remove the elements without removing data and events, use .detach() instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just want to add some extra text on top of input posted from
I just want some confirmation. I'm developing on windows I'm attempting to integrate facebook
I am trying to put some jquery UI code into an existing asp.net app,
I'm suspecting the answer is no, but I just want confirmation before I move
there is something weird happening on my webpage. I want to add a confirmation
Just want confirmation that this assertion is correct: python cannot ever experience the dangling
I just need a little confirmation ... I'm filling my combobox like so: myCombo.Items.Add(new
I'm making a small jquery application. I need some confirmation boxes to appear. However,
Just want to ask if i can use Custom Validator in client side without
Just want to make sure one thing. In a windows machine (either a desktop

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.