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.