function validationUserPassword() {
var userNameValidation = document.getElementById("UserNameTextBox").value;
var userPasswordValidation = document.getElementById("PasswordTextBox").value;
if (userNameValidation == "") {
document.getElementById("ForgetYourPassword")[removed] = '<p >Wrong Email & Password</p>';
}
if (document.getElementById("PasswordTextBox").value == "") {
document.getElementById("ForgetYourPassword")[removed] = '<p >Wrong Email & Password</p>';
}
}
// PasswordTextBox
function signupValidation() {
//SignUp textBoxes
var UserNameTextBoxValidation = document.getElementsId("SignUpUserNameTextBox").value;
var PasswordTextBoxValidation = document.getElementsId("SignUpPasswordTextBox").value;
if (UserNameTextBoxValidation == "") {
alert("User Name is Empty!!!");
}
}
function doBlur(textVariable) {
if (document.getElementById("UserNameTextBox").value == "") {
document.getElementById("ForgetYourPassword")[removed] = '<p >Please Enter UserName</p>';
document.getElementById("UserNameTextBox").value = "username";
}
if (document.getElementById("PasswordTextBox").value == "password") {
document.getElementById("PasswordTextBox").value = "";
}
}
function checkFocus(textVariable) {
if (document.getElementById("UserNameTextBox").value == "username") {
document.getElementById("UserNameTextBox").value = "";
}
if (document.getElementById("PasswordTextBox").value == "") {
document.getElementById("ForgetYourPassword")[removed] = '<p >Please Enter Password</p>';
document.getElementById("PasswordTextBox").value = "password";
}
}
function SignUpDoBlur(textVariable) {
if (textVariable == "vijay") {
document.getElementById("SignUpUserNameTextBox").value = "Enter User Name";
}
}
function SignUpCheckFocus(textVariable) {
if (document.getElementById("SignUpUserNameTextBox").value == "Enter User Name") {
document.getElementById("SignUpUserNameTextBox").value = "vijay";
}
}
function onmouseOverEventOnPassword() {
document.getElementById("PasswordTextBox")[removed] = "Password field";
}
Add a code snippet to your website: www.paste.org