I want to allow only alphabets in textbox using JavaScript I used the code:
var nam=f.nm.value; if(!isNaN(nam)) region.innerHTML=\"alphabets only\"; <
just use onkeypress event like below: