title: how to filter inputs before sending it to a xmlhttp request?
body: <p>I have following two input boxes which type is "tel". maxlength is set to 10.
  now, 
  if user insert one or both number less than of length 10, then the alert should display about wrong number.
  if one number is of exact length of 10 digit and other is not, then only accept the full length number and setting other to null.</p>
  
  <pre><code>&lt;input type="tel" maxlength="10" /&gt;
  &lt;input type="tel" maxlength="10" /&gt;
  </code></pre>
  
  <p>now, if both input are not of length 10, the alert should be there, 
  if one is of length 10 and other is not, the alert should be there like rejecting small no and continue with full length no of 10 digit.
  if both no are of 10 digit, the alert should be, send both nos to proceed further.</p>