TextBox Validation 
This function performs Textbox Validation using Javascript

function validate_form1()
{
valid = true;

if ( document.frm.username.value == "" ) {
alert( "User Name Should Not be Empty." );
document.frm.username.focus();
valid = false;
return valid;
}
if ( document.frm.password.value == "" ) {
alert( "Password Should Not be Empty." );
document.frm.password.focus();
valid = false;
return valid;
}

return valid;
}

[ add comment ] ( 2 views )   |  permalink  |   ( 3 / 21 )

<<First <Back | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Next> Last>>