Online Earning Sources (Without Investment)

If you want to post, send your post on dotnetglobe@gmail.com .Put 'Title' as 'Subject'

Pages

Thursday, July 16, 2009

Check only characters in Textbox using Javascript

//TextBox indicates the id of the TextBox in the form
{
function checkcharTXT(TextBox)

var str=TextBox.value;
for(i=0;i < str.length;i++)
{
var strchar=str.charAt(i);
if(((strchar>="a")&&(strchar<="z"))||((strchar>="A")&&(strchar<="Z")))
{
}
else
{
return(false);
}
}
}

No comments:

itworld