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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:17:38+00:00 2026-06-05T08:17:38+00:00

I am using jquery popup , but it’s not working after loading it from

  • 0

I am using jquery popup , but it’s not working after loading it from ajax

the popup.js is between

   $(document).ready(function() {
    $('a.poplight[href^=#]').click(function() {
     // code here
     }
    });

Do I have to use delegate?
Is it a problem because the document ready?

NOTE :
I tried to remove the document ready and used this

    $(document).delegate("a.poplight[href^=#]",'click',function(e){
// code here
}

but it doesn’t work

any help ?

Regards

  • 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-05T08:17:39+00:00Added an answer on June 5, 2026 at 8:17 am

    You can try this

    (jQuery >= 1.7)

    $(document).on('click',"a.poplight[href^=#]",function(e){
    // code here
    });
    

    OR

    $('a.poplight[href^=#]').live(function() {
         // code here
    });
    

    OR

    $('body').delegate('a.poplight[href^=#]', 'click', function() {
         // code here
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Jquery colorbox to implement a popup windows. <script> $(document).ready(function(){ $.colorbox({innerWidth:600px, innerHeight:520px, iframe:true,href:/notice.php});
I'm trying to create a popup for which I am using jQuery's CSS function.Here's
I am creating a popup jquery ajax comment form using the jquery validation plugin.
I have an Ajax control that is loaded into a Yahoo popup using jQuery.
I am using a jQuery Modal popup script. It can be downloaded from: Modal
I'm trying to achieve some animation using jQuery. I have it working but I'm
I am using jquery modal popup in my application with MVC3 Razor view. Issue
The Scenario Using jQuery, I have a page that has a popup overlay containing
I'm using the jQuery Table to CSV Plugin. I've altered the popup so that
Using jQuery I want to bind an existing function to a button. I've been

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.