I'm creating a form where I give certain fields. 
For now, an input field with type text. 

I have tried giving validation **" required "** but that is not what I am searching for. If a user gives a number as input, it should validate that it takes only alphabets.

```
<form action="/action_page.php">
  First name: <input type="text" name="fname"><br>
  Last name: <input type="text" name="lname"><br>
  <input type="submit" value="Submit">
</form>

```

Can you help me how can I do this on the go while typing inside the textfield and validate if a number is given