<input type='button' value='Submit form' onClick='submitDetailsForm()' /> <script language="javascript" type="text/javascript"> function submitDetailsForm() { $("#formId").submit(); } </script>