Answers for "validating form using javascript"

0

validating form using javascript

function validateForm() {
  let x = document.forms["myForm"]["fname"].value;
  if (x == "") {
    alert("Name must be filled out");
    return false;
  }
}
Posted by: Guest on October-28-2021

Code answers related to "validating form using javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language