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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:43:25+00:00 2026-06-10T17:43:25+00:00

So I use .load to show some information from php files that output data.

  • 0

So I use .load to show some information from php files that output data. I want to use .load so I can refresh this data once in a while or upon a particular action. Unfortunately this affects other parts of my site. There is a button that is outputted which jquery normally intercepts. Although now I cannot select the class as it doesn’t seem to be in my source code due to having used .load.

How can I get around this issue?

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-10T17:43:27+00:00Added an answer on June 10, 2026 at 5:43 pm

    From my understanding you need to use jquery on() to setup the click event on your button. It is not that your button does not exist, but rather it is recreated. Therefore, your initial selector will not work unless you set it up using on(). Your code would look something like this:

    $('.fRequest').on("click", ".friendConfirm", function () {
    
    });
    

    The above code will find a static element on the page (preferably the parent of the dynamically loaded content) and will look for all elements with the class specified in the second argument. It will then attach the specified event found in the first argument to all of the found elements even if they were created after the initial pageLoad.

    Just as a note, jQuery on() is for versions of jquery 1.7.1 or higher. If you are using earlier version you would want to use live().

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

Sidebar

Related Questions

I want to use datagridview for show some data(information) to user. My datagridview has
I need some guidance around which approach to use to load binary files from
Is there a ClassLoader implementation I can use to load classes from an InputStream?
I have a file holding default information that I use to load the textFields
Is there any way that I can use C# to load and then render
I need to load some data in my UIViewController to show a UIPickerView widget
I am trying to use load() to place some html into a div on
I use __autoload to load classes, and I keep getting errors that no class
Ok I have this problem I'm trying to use Jquery to load a partial
I use below code to load image from URL in my winodws phone 7

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.