How to set multiple masks for the phone number using the plugin jquery.inputmask.js?

Hello!

This task is necessary for 1 field phone to set several masks, depending on how many numbers entered:
1. To cover cell phone + 7 (999) 999-99-99;
2. Need to cover landlines in Moscow and Moscow region, without specifying the code 999-99-99;
3. Need to cover landlines in Moscow and Moscow region with the code +7 ( 999[9] ) - 999-99-99.

How it all can be blind at this plugin, read the documentation, but what I do not understand how to do it?
July 8th 19 at 11:23

Find more questions by tags JavaScriptjQuery