Bug Tracker

Opened 11 years ago

Closed 11 years ago

#11705 closed bug (invalid)

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

Reported by: [email protected] Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:


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(){

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

If I do the "old way":

trigger.live('click.formSubmit', function(){

only the clicks on the submit button are registered.

Change History (1)

comment:1 Changed 11 years ago by dmethvin

Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.