To see the issue try this Snippet:
You could always manually filter out letters by watching the keypress
event. Here's some JQuery code that will only allow you to type "0123456789" into a number textbox:
$("input[type='number']").keypress(function(event){
// If this key is not a number...
if (event.which < 48 || event.which > 57)
{
event.preventDefault();
return false;
}
});
Here's your JSFiddle forked to include this code: https://jsfiddle.net/o263wmnh/