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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:30:34+00:00 2026-05-23T13:30:34+00:00

I have a problem with jQuery click event handling. Here’s my code: $j(#btn_renommer_groupe).click(function(){ document.forms[‘creation_edition_groupe’].reset();

  • 0

I have a problem with jQuery click event handling.

Here’s my code:

$j("#btn_renommer_groupe").click(function(){
  document.forms['creation_edition_groupe'].reset();
  $j("#img_saisie_nom_groupe").hide();
  $j("input[name=creation_groupe]").css("background-color", "#f0f0f0");
  fun_renommer_groupe();
})

function fun_renommer_groupe(){
  alert('test');
}

The problem is, when I click on the button the alert message is display many time.

does anyone have an idea why this is happening?

EDIT:

Thx for your response. I can’t post all the js file (more than 1000 lines) but Here are two unique operations that I do on this button

$j("#btn_renommer_groupe").unbind('click');

and

$j("#btn_renommer_groupe").bind('click', function(){fun_renommer_groupe();});
  • 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-23T13:30:34+00:00Added an answer on May 23, 2026 at 1:30 pm

    I think the problem is you’re binding click event to the same control way too many times.

    this

    $j("#btn_renommer_groupe").click(function(){
      ...
      fun_renommer_groupe();
    })
    

    and this

    $j("#btn_renommer_groupe").bind('click', function(){fun_renommer_groupe();});
    

    will result in fun_renommer_groupe() called twice on btn_renommer_groupe click event, see what I mean in this example: http://jsfiddle.net/DpCDh/

    Make sure you only bind it once and you’re sorted!

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

Sidebar

Related Questions

I have this code: <span id=Santiago4>Santiago</span> <br>more html code here<br> <span id=Santiago4>Santiago</span> <script> jQuery(#Santiago4).click(function()
Here's the thing, I have a jquery click event handler, that calls a post
Never ran into this problem with jQuery before. I have the following: $(document).ready(function() {
I have a problem when assigning functions to the click event of a button
I am facing a problem in the jquery click event. My web page involves
I have a problem with jquery not loaded in an asp user control. I
I am having a very specific problem in JQuery The code below is used
I'm having a problem with some jquery animations. I have dynamically created divs with
I have an image with a click event bound to it which grows/shrinks the
I am binding a single click event to a large container using jQuery (event

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.