document.getElementById('user-add-form').submit(); code example Example: how to submit a form in js document.forms["myform"].submit();