We have a javascript function which gets called on click of an image in an HTML page. Inside the function, we explicitly submit the form using
$('#myForm').get(0).submit();
Is there any way for me to capture event of this submit() getting called and then again do a submit after modifying something in the form?
Also, while doing this, I do not know the exact name or id of the form.