We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback
Essential JS2

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

force user to enter number that starts with a specific numbers

Thread ID:





146499 Aug 6,2019 10:50 AM UTC Aug 7,2019 04:31 PM UTC jQuery 1
Tags: ejNumericTextbox
Ali Ossaily
Asked On August 6, 2019 10:55 AM UTC

Hello syncfusion support,

I want a numeric text box that allow users to enter their phone numbers , but I need this number to start with a specific numbers like(71 or 03 ... ) and if not show red error under this text box (" phone number should start with 71 or 03").
in addition to mask this text box like this pattern ( mask: "99-999-999")

thanks in advanced;

Ashokkumar Balasubramanian [Syncfusion]
Replied On August 7, 2019 04:31 PM UTC

Hi Ali Ossaily, 
Good day to you. 
For this scenario, we suggest use the MaskEdit component with jQuery validation to achieve your requirement. Could you please refer the below sample? 
Please check the above sample and get back to us, if you need any further assistance on this. 
Ashokkumar B. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon