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

  • Home
  • SEARCH
  • 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 6972057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:55:08+00:00 2026-05-27T16:55:08+00:00

Any ideas why the code below wouldn’t work in IE, yet in FF and

  • 0

Any ideas why the code below wouldn’t work in IE, yet in FF and Chrome it does:

$(".remove", document.getElementById("ccusers")).live("click", 
  function () {
     $(this).parent().remove();
  });

If I try:

alert($(this).parent().attr("id"));

I get the id alerted out in FF & Chrome but not IE.

Any ideas what needs to be done differently?

  • 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-05-27T16:55:09+00:00Added an answer on May 27, 2026 at 4:55 pm
    $(".remove, #ccusers").bind("click", function () {
        $(this).parent().remove();
    });
    

    To make shure you are removing the right parent element up in the tree and its children you can try this:

    $(this).parents('theParentYouWantToRemove').remove();
    

    You may find this useful: What is the difference between the bind and live methods in jQuery?

    P.S. I suggest you to use only $('.remove') , as I don’t see any reason why you are doing $('.remove, #ccusers'), as it will actually mean:
    elements.remove OR element #ccusers,

    And by doing: $('.element' , '#element') (look at the quotes!) your ‘second’ element will do absolutely NOTHING ! (like many here suggested).

    So my only valid suggestion would be:

    $(".remove").bind("click", function () {
        $(this).parents('#ccusers').remove(); // or .parent() as I explained above
    });
    

    DEMO jsBin

    (download and try in IE)

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

Sidebar

Related Questions

Any ideas given the code below why the highlight is being triggered to run
I am getting JQUERY undefined error. Do you have any idea (code below). <%@
any idea how i can get the code below to produce this output? 1
Here is the code, any ideas why I get this error? private SQLiteDataAdapter DA_Webfiles;
I get the following error in my flex code. Any ideas how to solve
The below code is producing the wrong result. On the work sheet we are
I am attempting to rewrite any URL with _excaped_fragment_=/some/directory to /some/directory?ajax=1. The code below
Any idea why this code: extern C __declspec(dllexport) void Transform(double x[], double y[], int
Any idea why the following code doesn't print the amount of characters in the
Any idea why the following code is not working mysql credentials are correct, have

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.