How to make such a form of phone input? Is it enough to use only bootstrap?
2 answers
For example, you can optionally use a plug-in - masked-input-plugin
$(".phone").mask("+7(999)999-9999"); <script src="https://code.jquery.com/jquery-2.2.4.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.maskedinput/1.4.1/jquery.maskedinput.min.js"></script> <input type="text" class="phone"> |
I advise you to use Phone Input from bootstrap form helpers (I need JQuery). Then the html input field will look something like this:
<input type="text" class="input-medium bfh-phone" data-format="+7 (ddd) ddd-dd-dd"> |
