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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T10:03:43+00:00 2026-05-19T10:03:43+00:00

I would like all AJAX loaded content in my app to be evaluated by

  • 0

I would like all AJAX loaded content in my app to be evaluated by my application JQuery script, the same as normal loaded content is. e.g. JQuery scans through the AJAX loaded content for selectors, like ‘modal box links’ etc.

All my JavaScript is in the normal document.ready, which works fine for normal HTTP loaded pages:

$(document).ready(function(){
  // my apps javascript
});

I would like to use something like .ajaxComplete to fire a re-run of everything contained in document.ready to evaluate newly loaded AJAX content for jquery selectors.

$(document).ajaxComplete(function(){
  // Re-run all my apps javascript
})

Is there some code I can put in .ajaxComplete to do this?

Hope this makes sense, please let me know if it doesn’t, and I will edit question details.

  • 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-19T10:03:43+00:00Added an answer on May 19, 2026 at 10:03 am

    you could encapsulate everything in your document.ready into a function and just call that function again to re-bind

    or…

    a better approach would be to take advantage of the live() and delegate() jQuery methods so that all current and future elements matching those selectors will be bound to these events as well.

    example using live(): http://api.jquery.com/live/

    $('.clickme').live('click', function() {
        //all elements that exist now and elements added later
        //with this class have this click event attached
    });
    

    example using delegate(): http://api.jquery.com/delegate/

    $("table").delegate("td", "hover", function(){
        //all current and future td elements in all current tables
        //have this hover event attached
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to catch all dev tags and their respective content, through php
I would like to have all developers on my team to use the same
I have a DataGridView that I would like all values on a specific row
I have a blog installed in www.foo.com/wp/ and would like all requests that go
I would like to remove all the elements in the String array for instance:
I would like to include all my .class from a dependency jar into WAR
We would like to enumerate all strings in a resource file in .NET (resx
I would like to find all the rows in a table and match on
I would like to see all revision numbers that made any changes to a
I would like to migrate all my unit tests from NUnit to MSTest. In

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.