Auto format or Masking phone number or te input field
Just take a tel input field, you can take text input also. But as I’m working with phone numbers, I am using tel input as below <form> <label for=”#phone-number”>Phone number<span class=”required”>*</span></label> <input id=”phone-number” type=”tel” value=”” name=”phone_number” aria-label=”Please enter your phone number” placeholder=”ex. 1(111)-111-1111″ onkeyup=”phoneMask(this) “> </form> We need to write a few lines […]