Topic awaiting preservation: Javascript: form validation doesn't submit (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 07-12-2005 21:29
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 |
posted 07-12-2005 23:32
I have no idea. |
Bipolar (III) Inmate From: Gainesboro, TN, USA |
posted 07-13-2005 00:22
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);"
|