JavaScript input validation with regex
<p>I want to validate my inputs, so the user can just enter letters. The problem is that it just checks one input field but I selected all with <code>:input</code></p>

<p>code:</p>

<pre><code>$('#formularID').submit(function() {
   var allInputs = $(":input").val();
   var regex     = new RegExp("[a-zA-Z]");
   if(regex.test(allInputs))
   {
       alert("true");
   }else
   {
       alert("false");
       return false;
   }
});
</code></pre>

<p>I appreciate every help I can get!</p>