title: HTML5 Validate Input to accept alphabets only
body: <p>I have an input firstname </p>
  
  <pre><code>&lt;input pattern="[a-zA-Z]" oninvalid="setCustomValidity('Please enter on alphabets only. ')" type="text" class="form-control" name="first_name" placeholder="Firstname"&gt;
  </code></pre>
  
  <p>I enter it as : <code>qwerqwe</code></p>
  
  <p>I kept getting </p>
  
  <p><code>Please enter on alphabets only.</code> print out </p>
  
  <p><a href="https://i.stack.imgur.com/Ty5l4.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Ty5l4.png" alt="enter image description here"></a></p>
  
  <p>Isn't <code>qwerqwe</code> suppose to be valid ? I'm a little confuse now, and not sure what I missed here. </p>
  
  <p>Can someone please provide me some hints on this ? </p>