Is there a quick way to set an HTML text input () to only allow numeric keystrokes (plus \'.\')?
Just an other variant with jQuery using
$(".numeric").keypress(function() { return (/\d/.test(String.fromCharCode(event.which) )) });