Opened 13 years ago

Closed 13 years ago

Last modified 10 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 13 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 Changed 13 years ago by Scott González

Resolution: invalid
Status: newclosed

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 13 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 10 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.