Hi, there is a little improvement required: your code use closest('form') to detect the parent form, required to detect a submit event.
But in HTML5 we can use "form" attribute that enables placing an , , or other form field anywhere within a document, not just as descendants of a elements.
Your code should detect a form as self.$right.closest('form') or as $('#' + self.$right.attr('form')).
Thanks