Good day, I just can not win the form ...
The task is, by clicking on the "send" button, check that the form is completed (done), and if the form is filled out correctly - send it ... that it just did not try to invent)
<form id='reg' name='reg'> <input 1....> <input 2....> <input type=submit>// в таком варианте как не извращался форма в любом случае отправляется <input type=button>// в таком варианте как не извращался форма в любом случае НЕ отправляется </form> code js reached obsurd
onclick='this.form.submit();' and in a similar spirit found on the Internet
if it's not difficult to write how to send the form from JS or how to cancel sending using JS