Home > Software design >  How to create phone format input in HTML if it's possible with country code
How to create phone format input in HTML if it's possible with country code

Time:07-27

I need a phone format input with a country code if it's possible i've tried few things but it didn't work so well this is my code

<div >
    <input   placeholder="@localizer["MobilePhone"]" id="inpMobilePhone" name="MobilePhone"  required />
    @*<label asp-for="ERPId" >@localizer["ERPId"]</label>*@
    @*<input asp-for="ERPId"  />*@
    @*<span asp-validation-for="ERPId" ></span>*@
</div>

CodePudding user response:

Hi i found this w3school post where explains it. But not it's supported in all browsers.

enter image description here

  • Related