Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- function validateForm() {
- var a = document.forms["editorder"]["OrderID"].value;
- var b = document.forms["editorder"]["orderdate"].value;
- var c = document.forms["editorder"]["customer"].value;
- var d = document.forms["editorder"]["salesagent"].value;
- var e = document.forms["editorder"]["orderstatus"].value;
- if (a == null || a == "" || b == null || b == "" || c == null || c == "" || d == null || d == "" || e == null || e == ""){
- alert("One or more fields have been left blank.");
- return false;
- }
- if(isNaN(a)){
- alert("One or more inputs require numeric input where text was used.")
- return false;
- }
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement