Nickname validation javascript


function Check(form)
{
value=form.nickname.value

var valid=/^[0-9a-zA-Z_]*$/;

if(value!="" && !valid.test(value))
{
form.nickname.style.background = "#FFCCCC";
alert("field must contain only alphabets,numbers and underscore.\n");
return false;
}
return true;
}

Related Posts:

One Responses


prabhu December 12, 2007 at 3:59 am

he is very innocemt


Comments are closed.