Friday, September 4, 2009

Is Alfa function using Javascript

function IsAlpha(txtvalue)
{
var numaric = txtvalue.value ;
for(var j=0; j
{
var alphaa = numaric.charAt(j);
var hh = alphaa.charCodeAt(0);
if((hh > 64 && hh<91)> 96 && hh<123) || (hh == 32) || (hh==46))
{
}
else
{
txtvalue.focus();
txtvalue.value = "";
alert('Please Insert [a-z] only number are not allowed!');
return false;
}
}
return true;
}

1 comment:

  1. Your Code Have problem Because First For Loop Is Not Complete

    ReplyDelete