freenode :: #html5

 
27 Apr 2017
13:40silvahi, I have an imput text that only accept numbers: &quot;input name=&quot;DPDES&quot; type=&quot;text&quot; maxlength=&quot;3&quot; onkeypress=&#39;return event.charCode >= 48 && event.charCode <= 57&#39; but it don&#39;t work on celphones. Should I do something else?
13:47thykka<input type=&quot;number&quot;>? \_()_/
13:48silvathykka: tried that but it allows you to write non numeric characters.
13:48thykkaok, hold on...
13:52thykkasilva, https://jsbin.com/cezapam/edit?html,js,console,output
14:10silvathykka: thanks
 
27 Apr 2017
   
Last message: 6 hours and 22 minutes ago