Jquery UI Dialog Event Listeners not working

Posted by flaiks on Stack Overflow See other posts from Stack Overflow or by flaiks
Published on 2012-06-22T15:13:36Z Indexed on 2012/06/22 15:15 UTC
Read the original article Hit count: 191

Filed under:
|

I have a page, which upon clicking a specific link a jquery ui dialog is opened, works perfectly, in said dialog there is a form(a user registration form), and I need to attach a submit event handler on that form, but because it is loaded with ajax in jquery the event handler will NOT attach, my code is such as this:

$("#register").on("submit", false);

I just need to be able to cancel the form submission within the dialog and i cannot get it to work.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-ui