I have a form with id theForm which has the following div with a submit button inside:
theForm
document.forms["name of your form"].submit();
or
document.getElementById("form id").submit();
You can try any of this...this will definitely work...