title: Validate a number between 10 and 11 characters in length
body: <p>I am using javascript (and PHP) to validate a simple form with a phone number field.  I have it working fine checking that the field has only 10 characters, but I really want to check if the field has between 10 and 11 characters.   </p>
  
  <p>Reason being, some people type numbers like so: 1 555 555 5555 and some people do this 555 555 5555.</p>
  
  <p>Here is what I have that works for checking if the length is 10: </p>
  
  <pre><code>        if (!(stripped.length == 10)) {
              alert("Please enter a valid US phone number.")
              return false
          } 
  </code></pre>