Azure Jane Lunatic (azurelunatic) wrote,
Azure Jane Lunatic
azurelunatic

Copied JS validation function

http://www.scriptygoddess.com/archives/003348.php
function validate() {

//check a field to make sure it has something filled in
if(document.formName.textFieldName.value == '') {
alert('Please fill out textFieldName.');
document.formName.textFieldName.focus();
return false;
}

Remember. Good programmers are lazy. They do not want to do stuff themselves by hand unless absolutely necessary. So. Heh. Will tweak later.
Subscribe
Comments for this post were disabled by the author