Bug Tracker

Modify

Ticket #11705 (closed bug: invalid)

Opened 14 months ago

Last modified 14 months ago

binding to form submit buttons (in ajaxed-in forms)

Reported by: svenfranck@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocking: Blocked by:

Description

I have a form which I'm ajax-loading into the page.

If I try to bind to the form submit button like this:

var trigger = form.find('input[type="submit"]');
$(document).on('click.formSubmit', trigger, function(){
    console.log("click");
    })

every click on a link element anywhere on the page triggers this event.

If I do the "old way":

trigger.live('click.formSubmit', function(){
    console.log("mh");
    })

only the clicks on the submit button are registered.

Change History

comment:1 Changed 14 months ago by dmethvin

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

Please read the documentation or ask for help on the forum.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.