Valid data in a text box
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5692232/jquery-validate-phone-number-with-with-regex">jQuery validate phone number with with RegEx</a>  </p>
</blockquote>



<p>we have to allow only 10 digits in a text field along with , . ( ) - also.
(US phone number format.) It should not allow 11 th digit when i am entering data in this text field.If i delete all the data it will again allow me to enter upto 10 digits.
this field is also using to enter email to login.
For Email and mobile number same text field.
Please help me out to do it.</p>
