I have a text box in which i want user to provide multiple mobile numbers, each number should be only 10 digits and they should be comma separated. Other than comma no special character should be allowed not even space.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ll assume you can figure out how to get the value out of the textbox.
Here’s a regex that’ll do the number validation:
This will allow the field to be blank, but if something is entered it would have to be one or more 10-digit numbers separated by commas.