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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:03:37+00:00 2026-05-24T01:03:37+00:00

So I have element blocks being added dynamically ( <div><img><div><p></p></div></div> ) and once they

  • 0

So I have element blocks being added dynamically (<div><img><div><p></p></div></div>) and once they load, I change the ID of them ($(“#”+id).attr(“id”, new_id);) I’m having an issue selecting that new ID though. Selecting the old ID still works and applies to that element. How do I make it recognize the new ID?

Site is at http://www.steamcompare.com. You can test by adding a steam account. While it’s loading, I display an image with a transparent overlay. Once it finishes, I fadeout the overlay, change the ID, and add a bunch of information to the overlay. When you hover over it again, you’ll see the extra info. Now, if I fadeout the overlay with

$("#"+id).find('div.caption').fadeOut(200);

before I change the ID, it’s fine. If I move it past, it won’t fadeout.

  • 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-24T01:03:38+00:00Added an answer on May 24, 2026 at 1:03 am

    Never did resolve this, ended up having to rewrite how I was handling the elements. Solved it by destroying the original one and creating a new one in it’s place with the new ID.

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

Sidebar

Related Questions

I have a block element (DIV) who stretches across an entire page. It contains
I load content via Ajax and then I'll have element like $('.my_content_class') and I
The idea: I'm creating a div that will change to position:fixed once the top
I'm trying to have this block element to be horizontally aligned in the middle
I have an input[type=radio] element inside a block container of fixed width. The supporting
I have some the page elements split into separate visual blocks. I am currently
I have a WCF service that is returning a block of xml. One element
I have an element with an onclick method. I would like to activate that
I have an element that is similar to a tag (because it has word-wrap:
I have an element in my document that has a background color and image

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.