I try to get jQuery object of a submit button in a specific form (there are several forms on the same page).
I managed to get the form element itself. It looks somet
The following should work:
var submit = curElement.closest('form').find(':submit');