Are you first timer at Why not join us and start exchange your knowledge with everyone. Register today!

Javascript - HTML type attributes only allows numeric input

0 votes
added Feb 14 in Javascript by LC Marshal Second Warrant Officer (3,520 points)

<input id="contact" name="" type="tel" maxlength="12"  onkeypress='return event.charCode >= 48 && event.charCode <= 57'>


Please log in or register to response this solution.