The solutions so far require you to know the ID of the form.
Use this code to submit the form without needing to know the ID:
function handleForm(field) {
$(field).closest("form").submit();
}
For example if you were wanting to handle the click event for a button, you could use
$("#buttonID").click(function() {
handleForm(this);
});