Category : validation

I’m trying to merge two input fields first name + last name into a single one ‘name’ via DOM manipulation. What would be the possible way to allow the form to validate correctly? I did create a new object function Person(){ } Person.prototype.fname=function(){ return } Person.prototype.lname=function(){ return } Person.prototype.fullname=function(){ return this.fname() + " " + ..

Read more

good day am sure you doing great incase you not feel free to message me lets know what’s up. I got a problem and I need solutions. Look below this code, var UserName = document.getElementById("username"); var PassWord = document.getElementById("password"); function ValidateFormBeforePHP() { if (UserName.value =="" || UserName.value.length < 10) { alert("Please fill in username or ..

Read more

I wanted to do a simple form validation, wich should check for the password and email,both with a confirm. I used one function,wich checks if the fieldName(given as parameter) and his confirm are equal,the form should not be sent unless they’re. The issue is: as soon as one of them is false it breaks out ..

Read more