SyntaxFix
Write A Post
Hire A Developer
Questions
you can use cleave.js
// phone (123) 123-4567 var cleavePhone = new Cleave('.input-phone', { //prefix: '(123)', delimiters: ['(',') ','-'], blocks: [0, 3, 3, 4] });
demo: https://jsfiddle.net/emirM/a8fogse1/