I’m using the pattern attribute for my <input type="tel" /> and I’m having a hard time with the regexp. I tried pattern="d{10]" and pattern="d{3}[\)]\d{3}[\-]\d{4}" but it does not work.
I’m using the pattern attribute for my <input type=tel /> and I’m having a
Share
Use this instead:
Here’s the fiddle: http://jsfiddle.net/ZMaXA/
Try messing with the value in the
input.