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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:36:37+00:00 2026-06-13T10:36:37+00:00

I have this piece of jQuery code : $(‘a.manage-content-link’).click(function (e) { var self =

  • 0

I have this piece of jQuery code :

$('a.manage-content-link').click(function (e) {
    var self = $(this),
        file = self.siblings('input[name="block-type"]').val();
    file = file.substring(file.length - 3);
    self.next(".manage-content-wrap").find(".manage-content").load("file-" + file + ".php?key=" + self.siblings('input[name="key"]').val());
    e.preventDefault();
});

but I think that code only just ‘load’ once it’s clicked. I don’t see that code reload the file if second, third, etc click happen. how to make jQuery reload every time click event happen? 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-13T10:36:38+00:00Added an answer on June 13, 2026 at 10:36 am

    I suspect that the link element is being replaced each time you load page( ie it is part of the loaded content).
    If this is the case, when you replace an element, even with exactly the same ID, the events bound to it are lost. You can overcome this by delegating the handler to account for future elements that don;t exist when your code is run.

    See jQuery Docs FAQ “Why do my events stop working after an AJAX request? “

    $(document).on('click','a.manage-content-link',function (e) {
       /* your code*/
    })
    

    If the element is not being replaced, problem lies elsewhere ( caching, bug etc). You need to use a browser console to look and see if AJAX request is being made.

    The addition of a simple logging function insode your handler( or an alert) will tell you if the click event is being executed also

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

Sidebar

Related Questions

I have this simple piece of code in jQuery $(document).ready(function() { $('#switcher').click(function(event) { if
I have this piece of code: $(#faq).click(function () { var url = $.get(faq, {
So I have a piece of code: jQuery.fn.center = function(parent) { parent = this.parent();
Hey guys, I have this piece of jquery code: <script type=text/javascript > $(function() {
I have an issue I have this jQuery code: $(document).ready(function(){ $(#follow).click(function(){ $.ajax({ type: 'POST',
I have this piece of code written in jQuery and PHP: <script type=text/javascript> $(document).ready(function(){
I have this piece of code which works in Firefox link = $('<a>link</a>'); var
I have this piece of code in a function. I want to print the
I have this simple html piece of code, whenever I click on any of
I have this piece of Jquery code that grabs a heading in a table

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.