i am new at js and i need help so bad
hi guys how you are ?hope u doin good.
as i said i am new at js and i don't now how to creat a code that control the textbox so it accepts only english alphabits
i made a code but i didn't work well .
it just check the first index .
please help me with this .
here it is :
var str =new String();
for(var i=0 ;i<=str.length ;i++)
if(m>=97 && m<=122)
alert("the input value is only english");
<form name="f1" action="" Onsubmit="return checked()">
<input type="text" name="t1">