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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:10:23+00:00 2026-05-23T12:10:23+00:00

I have content that I’m loading using an AJAX call and displaying the HTML

  • 0

I have content that I’m loading using an AJAX call and displaying the HTML (consisting of divs, etc) inside of a ul parent.

Now I’ve written a series of .click and .hover functions that work perfectly on everything, right up to where my content is dynamically loaded, and then don’t work at all on the dynamically-loaded content.

I’ve gone through all my div ids to make sure they are correct and they are. Is there a way to gain control over the AJAX-loaded material?

  • 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-23T12:10:24+00:00Added an answer on May 23, 2026 at 12:10 pm

    The problem is that your code run only with the elements that existed at that time and no the “future” elements. You have 2 choices:

    1) Re-run your “onload” javascript code (that was applied on document ready) after you load your ajax content.

    2) Use .live() instead of .bind():
    So change

    $('#selector').bind('click', function(){..
    

    To

    $('#selector').live('click',function(){..
    

    The difference is that live uses the elements that match the selector now and in the future, versus bind uses the elements that match the selector only at the time it’s called.

    Hope this helps. Cheers

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

Sidebar

Related Questions

I have some content that I am loading using jquery ajax. The content has
I have html content that I am storing as an XML document (using HTML
I want to parse a html content that have something like this: <div id=sometext>Lorem<br>
Using a jQuery effect, I have a layer that has a collection of HTML
I have a jQuery ajax function that loads some content into a div, some
I have some content that i have to render as a excel file in
I have some content that I want to appear on multiple pages of my
In silverlight 2.0. I have some content that i want to scroll vertically and
I'm doing some in browser editing, and I have some content that's on the
I have blocks of content that are toggled on/off via jQuery and I want

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.