"inputmask tel"
Bootstrap 4.1.1 Snippet by sekmenhuseyin

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.inputmask/3.3.4/jquery.inputmask.bundle.min.js" integrity="sha256-HQCkPjsckBtmO60xeZs560g8/5v04DvOkyEo01zhSpo=" crossorigin="anonymous"></script> <div class="container"> <div class="form-group row"> <div class="col"> <label class="form-label">Tel</label> <input class="form-control phone" id="Tel" name="Tel" type="tel" autocomplete="off" /> </div> </div> </div>
$(".phone").toArray().forEach(function (field) { // ReSharper disable once UnusedLocals const cleave = new window.Cleave(field, { phone: true, phoneRegionCode: "TR" }); }); Inputmask({ "mask": "+\d[9-9]0 999 999 9999" }).mask(".phone");

Related: See More


Questions / Comments: