How to click an input with the type submit when a button was clicked?
$(document).on('click', 'button.editManufacturer', function(event) {
event.preventDefault();
$(".editManufacturerSubmit").click();
});
The snippet above is the code i have so far, but it doesn't work?
Thank you!
===== EDIT =====
Let me explain my problem a little bit more exactly!
I've a lot of forms that i want to submit via only one button.
The following things I have tried before:
$("button.editManufacturer").click( function() {
$('form.editManufacturer').submit();
});
=========================================================================
"form" attribute at the button / input
=========================================================================
and some other things, were i havent the snippets anymore
=========================================================================
NOTE: only the last form is getting submitted