jQuery input mask for phone number
问题 I want a user's input to autofill the punctuation of a phone number in order to look like this (xxx) xxx-xxxx . This is my HTML code: <div class="form-group"> <label class="control-label col-sm-2">Phone Number:</label> <div class="col-sm-10"> <input type="text" class="form-control" name="phoneNumber" id="phoneNumber" value="<?php echo $row["phoneNumber"];?>"> </div> </div> What else do I need to do to complete this task? I am trying to use jQuery and an input mask. 回答1: You can accomplish