V
V
Victor L2018-08-29 13:35:02
Vue.js
Victor L, 2018-08-29 13:35:02

Mask for phone number input field in vue?

You need to make a mask to enter the phone. There are many ready-made plugins, but I want my own solution.
I have such a blank on js, I build on it

I decided to use a filter but got stuck

Tell me if it is possible to change the value in the input, how to do it correctly

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-08-29
@Fzero0

decided to use a filter

Why? What for? Here you say above that "there are many ready-made plug-ins" - so you would see how such functionality is implemented there. You would see that directives are used for such things. Something like this , for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question