Side navigation
#11705 closed bug (invalid)
Opened May 05, 2012 11:06AM UTC
Closed May 05, 2012 12:42PM UTC
binding to form submit buttons (in ajaxed-in forms)
| Reported by: | svenfranck@yahoo.com | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | unfiled | Version: | 1.7.1 |
| Keywords: | Cc: | ||
| Blocked by: | Blocking: |
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.
Attachments (0)
Change History (1)
Changed May 05, 2012 12:42PM UTC by comment:1
| resolution: | → invalid |
|---|---|
| status: | new → closed |
Please read the documentation or ask for help on the forum.