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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:05:35+00:00 2026-06-05T21:05:35+00:00

I load content via jQuery load() but for each time I load a given

  • 0

I load content via jQuery load() but for each time I load a given page, the clicks on the pages gets fired multiple times. Why??

Se the fiddle here:
http://jsfiddle.net/ZUZ3L/ph3tH/2/

  • 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-05T21:05:37+00:00Added an answer on June 5, 2026 at 9:05 pm

    It’s because you’re adding the click event multiple times.

    Every time your code runs, the click function is re-defined. When a click is redefined it won’t replace the previous one, but instead will be added to the stack to be executed each time the “click” event occurs. This is applied to all events in jQuery.

    As you are loading via AJAX the vars and events in the document are still persisted. Meaning that you are just adding layer on top of layer of function calls to be executed each time you run your ajax call

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

Sidebar

Related Questions

I need to load content from a text area into a div via jquery
I'm using jQuery UI Tabs to load some content via Ajax when the user
I am having some strange problems loading content from another XHTML page via jQuery.
I've set up a page to load data via AJAX, utilizing the jQuery .load
I'm doing some content replacement via jquery load() on a number of places on
I've previously used jquery-ui tabs extension to load page fragments via ajax , and
The website I am developing uses jQuery UI tabs to load content via AJAX
I have a jQuery script using .live() to load it's page content. $('#content').load(content.php? +
I have part of a page being dynamically refreshed via the jQuery load() method,
I load content via Ajax and then I'll have element like $('.my_content_class') and I

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.