Skip to main content

Bug Tracker

Side navigation

#12129 closed bug (invalid)

Opened July 23, 2012 04:18PM UTC

Closed August 07, 2012 08:31AM UTC

jQuery.on() binds event handler twice

Reported by: Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:


I realized that .on() binds event handler twice.


$('body').on('click', '#submitForm', function(){

$.ajax( '/someUrl',
            type: 'POST',
            data: $('#myForm').serialize(),
            success: function(data) {
                if(data=='Success') {
         ); return false;

Attachments (0)
Change History (2)

Changed July 23, 2012 04:29PM UTC by dmethvin comment:1

owner: →
status: newpending

Please provide a code example that we can run. We prefer but you can also use or some other site.

Changed August 07, 2012 08:31AM UTC by trac-o-bot comment:2

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!