title: How do I make an input field accept only letters in javaScript?
body: <pre><code>function validate() {
  if(document.myForm.name.value =="" ){
  alert("Enter a name");
  document.myForm.name.focus();
  return false;
  }
  </code></pre>
  
  <p>This is what I've written it for an empty string, now i need it to accept only letters?</p>