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
Post a Comment