The question is as :
Pattern: 234-567-8910
required
) field[ Pattern: 234-567-8910]
.telephone
.My code is
<input type="tel" name="telephone" id="telephone" required placeholder="Pattern: 234-567-8910" pattern="">
What to write in the attribute pattern ?
The pattern in an input would take a regular expression. Your requirement is to get a regex what would fit in the requirement [ Pattern: 234-567-8910].
The regex would be
pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}"