JavaScript Tutorial - Password Validation, Check length and confirm password
Check if the password input has minimum length and equal to confirm password value, also validate confirmed password using javascript. Get source code from ...
@edc0304 I am glad I was able to help! Keep tuned in, I am making and
producing more videos at the moment and will be releasing very shorty. Just
Subscribe to this Channel and you will immediately notified! Enjoy!!!
I spent quite a while trying to do this last night for my JavaScript class
and wish I had seen this. I guess the important thing is I get it now,
thanks!
In this video tutorial you learn,how to cross check admin username and password with database, depending upon login credential program redirect to respective ...
JavaScript beginner tutorial 30 - form validation text boxes and passwords
In this video I finally start speaking about form validation. I show you how to check if a form field has been left empty, and how to use a return statement in ...
can anyone help me please, whats wrong in this following code?
function Ganesh(){
var username = document.getElementById("username").value;
var Password = document.getElementById("Password").value;
if (username==" " || Password==" ") {
alert("Required fields are empty");
return false;
}
else {
return true;
}
}
Username:
Password:
+Ganesh Ananthula take the spaces out of username==" " and Password==" "You aren't looking for a space. you are looking for nothing. the quotes should be next to each other with no space""
Thanks for this great tutorial, I changed the subject with same way to do
it ,but it's not work, Can someone help??
Age
Gender
function requireInfo(){
var condition = document.getElementById("condition");
var age = document.getElementById('age').value;
var gender = document.getElementById('gender').value;
if ( age >= 65 && gender =="M" ){
condition.innerHTML = "* Please fill out From A";
}
else if( age >= 65 && gender == "F" ){
condition.innerHTML = "* Please fill out From B";
}
else
condition.innerHTML = "* Please fill out From D";
}
nope. I never ever said that. A submit button submits data in the form to whatever page was listed in the form action. onclick is there just for fancy javascript actions. If you don't validate onsubmit then you won't stop the form from submitting if the data is wrong.
+Quentin Watt WHy do you use onsubmit event instead of onclick.. Both should be same right as per the definition you taught us in your lessons?! Please help me. Many Thanks.