Skip to main content

Search and Top Navigation

#5173 closed bug (notabug)

Opened February 12, 2010 08:28AM UTC

Closed February 12, 2010 03:39PM UTC

Last modified October 11, 2012 09:15PM UTC

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

Attachments (0)
Change History (4)

Changed February 12, 2010 09:53AM UTC by _matesko_ comment:1

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 [ticket:5173 _matesko_]:

Click event listener executes twice on button click. Example: $("#button").click(function() { alert('clicked'); }); will produce two alerts

Changed February 12, 2010 03:39PM UTC by scottgonzalez comment:2

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

Changed February 12, 2010 06:18PM UTC by _matesko_ comment:3

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 [comment:2 scott.gonzalez]:

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

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:4

milestone: TBD

Milestone TBD deleted