![]() Topic awaiting preservation: Javascript: form validation doesn't submit (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: 127.0.0.1 |
![]() A little help here... code: function checkme() { if (document.getElementById('dbw').value != "" && document.getElementById('dbwfoot').value == "") { alert("Please enter a footage for Direct Burial Wire"); document.getElementById('dbwfoot').focus(); return false; } // a bunch more IF statements here return true; }
code: <form id="quote" method="post" action="thanks.htm" onsubmit="return checkme();">
|
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
![]() I have no idea. |
Bipolar (III) Inmate From: Gainesboro, TN, USA |
![]() Hey Pugz, I tried your code and it wouldn't submit for me either until I added "this" to the onsubmit like so code: onsubmit="return checkme(this);"
|