title: Not allow space as a first character and allow only letters using jquery
body: <p>Im using jquery for the name validation I have tried a code which is given below</p>
  
  <pre><code>$("#contactname").keypress(function(e) {
      if(e.which &lt; 97 /* a */ || e.which &gt; 122 &amp;&amp; (e.which &lt; 65 || e.which &gt; 90)) {
         e.preventDefault();
      }         
  });
  </code></pre>
  
  <p>The above code is working fine to allow only letters and not allow numbers but its not allow space.So what i want is it should allow only letters (both small and capital letters) then it should not allow numbers and special characters and also accept space except as a first character And please tell me how to restrict when copy paste. </p>