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 7660179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:25:51+00:00 2026-05-31T13:25:51+00:00

I am still learning jQuery so this may be a simple one. When a

  • 0

I am still learning jQuery so this may be a simple one. When a link is clicked I wish to change the text in a div which is a copy of another one on the page, I am deleting the copy and updating the text in the original. I have the parent id and pass the inner div, but the text does not change.

Thanks

            var idValues = $(this).parents(".listingContainer").attr('id');
            idValues = '#' + idValues
            $(this).parents(".listingContainer").remove();
            $(idValues).find("div.saveCompare").text('Compare removed')

In idValues is #001 which is correct.

Here is the div:

<div class="listingContainer grid_9 alpha omega" id="001">
                <a href="adContent.html" class="listContent">
                    <div class="listingWrapper">
                        <div class="grid_8 alpha omega">
                            <div class="listingContent">
                                <div class="imgHolder">
                                    <img width="100" height="75" src="imgs/cars/SearchThumb-10053319.jpg">
                                </div>
                                <div class="descHolder">
                                    <div id="car"></div>
                                    <h3>Fancy Car</h3><div class="saveCompareShow">Compare Added</div>
                                    <p>Lorem ipsum dolor sit amet, pri ex duis maiorum commune, illud viderer suscipiantur eam an. Dolorum recteque qui in. Pro inani nulla tacimates ex, qu</p>

                                </div>
                            </div>
                        </div>
                        <div class="goTo goTo_unfocus grid_1 alpha omega">
                            <div class="gotoWrapper">
                                Click to View
                                <div class="imgVeiw"></div>
                            </div>
                        </div>
                    </div><!--End listingWrapper-->
                </a>
            </div>
  • 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-31T13:25:52+00:00Added an answer on May 31, 2026 at 1:25 pm
    1. you can not have numeric id’s 001

    2.i can not find a class called saveCompare , are you reffering to saveCompareShow

    NOTE

    HTML ID atttribute

    Specifies a unique id for the element. Naming rules: Must begin with a
    letter A-Z or a-z Can be followed by: letters (A-Za-z), digits (0-9),
    hyphens (“-“), and underscores (“_”) In HTML, all values are
    case-insensitive

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

Sidebar

Related Questions

I'm still learning my way around jQuery but I think this may be pretty
Still learning this jQuery stuff.... I like this ajax page loader; it works for
I'm learning jQuery, but am a bit stumped with this one. I have the
I'm learning jQuery, but am a bit stumped with this one. I have the
So maybe this is kind of juvenile, but I'm still learning Jquery. I've got
Sorry for all the dumb jquery questions I'm still learning and find this to
I'm still learning jQuery and would appreciate some pointers with this, as I think
I'm still learning jQuery and I'm able to search for all elements on a
I'm a jquery newbie... still learning the framework.... and here goes my query... The
Still learning Objective-C / iPhone SDK here. I think I know why this wasn't

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.