Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var fieldValue = document.getElementById("someInput").value;
- if( fieldValue.length > 0 ) {
- if( someValidationFunction( fieldValue ) ) alert("Field is invalid");
- }
- <form onSubmit="return customValidation()>
- //code to test fields
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement