Skip to content

Instantly share code, notes, and snippets.

@zooks
Created August 29, 2022 16:09
Show Gist options
  • Save zooks/0873f9eb15442e90b3e81fcb3d0c7194 to your computer and use it in GitHub Desktop.
Save zooks/0873f9eb15442e90b3e81fcb3d0c7194 to your computer and use it in GitHub Desktop.
cleave-js-phone-russia
var cleave = new Cleave('.phone-mask', {
// prefix: '+7 ',
numericOnly: true,
blocks: [0, 3, 3, 2, 2],
delimiters: ["+7 (", ") ", " ", "-", "-"]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment