Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#5173 closed bug (notabug)

click method executes twice on click

Reported by: _matesko_ Owned by:
Priority: major Milestone:
Component: ui.button Version: 1.8rc1
Keywords: Cc:
Blocked by: Blocking:

Description

Click event listener executes twice on button click.

Example:

$("#button").click(function() {

alert('clicked');

});

will produce two alerts

Change History (4)

comment:1 in reply to: ↑ description Changed 6 years ago by _matesko_

normal button fires once, that is OK checkbox fires twice radio group fires as many times as there are radios in that group

Replying to _matesko_:

Click event listener executes twice on button click.

Example:

$("#button").click(function() {

alert('clicked');

});

will produce two alerts

comment:2 follow-up: Changed 6 years ago by scottgonzalez

  • Resolution set to invalid
  • Status changed from new to closed

This sounds like you're using an id multiple times. Please ask for helps on the forum http://forum.jquery.com

comment:3 in reply to: ↑ 2 Changed 6 years ago by _matesko_

correct!
what fooled me was that I was using demo files to test, and there is div with same id as radio button.

thanks

Replying to scott.gonzalez:

This sounds like you're using an id multiple times. Please ask for helps on the forum http://forum.jquery.com

comment:4 Changed 4 years ago by scottgonzalez

  • Milestone TBD deleted

Milestone TBD deleted

Note: See TracTickets for help on using tickets.