Hello, please tell me how to make the operator's code static in the feedback form in the "Phone number" field, and when filling a certain number of characters, a hyphen appears between them as in the example below. example 1

example 2

    1 answer 1

    There are several methods, you can use the simple method, Phone number mask, read on Habré can help.

    • Thanks, everything works fine) - vovaxxx
    • You ) - Arsen
    • it is desirable to add a text description of the solution to the problem, because the link may eventually become invalid - lexxl
    • @lexxl, ok, I'll add examples later - Arsen