|
|
@ -256,7 +256,7 @@ |
|
|
|
<div class="col-md-4"> |
|
|
|
<div class="mb-4"> |
|
|
|
<div class="form-floating"> |
|
|
|
<input type="text" class="form-control" name="mobile" asp-for="mobile" placeholder="(+44) 99000000" value="+44" required> |
|
|
|
<input type="text" class="form-control" name="mobile" asp-for="mobile" placeholder="(+44) 99000000" prefix="+44" value="+44" required> |
|
|
|
<label for="mobile">Mobile Number *</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -486,7 +486,7 @@ |
|
|
|
|
|
|
|
document.getElementById('mobile').addEventListener('input', function (e) { |
|
|
|
var x = e.target.value.replace(/\D/g, '').match(/(\d{0,2})(\d{0,3})(\d{0,3})(\d{0,2})(\d{0,2})/); |
|
|
|
e.target.value = '+(' + x[1] + ') ' + x[2] + '' + x[3] + '' + x[4] + '' + x[5]; |
|
|
|
e.target.value = '+44' + x[2] + '' + x[3] + '' + x[4] + '' + x[5]; |
|
|
|
}); |
|
|
|
|
|
|
|
// $('#mobile').keyup(function () { |
|
|
|