You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: