I have a form with id theForm which has the following div with a submit button inside:
theForm
You can use the below code to submit the form using JavaScript:
document.getElementById('FormID').submit();