javascript - How to check for numbers in a textbox, of which you only want letters A - Z -


i using javascript on website check input elements within form. trying ensure there no numbers in field when user enters name. form created using php. still in first year of web design not sure if there function this. apologies if question has been asked, haven't found anything. many thanks

if targetting html5 browser can use pattern attribute

<input type="text"  pattern="^[a-za-z]*$" > 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -