Hi, I am testing this code to allow a textbox to enter only numbers with Jquery. When I try it in Chrome it works perfect, but the problem arises when I try it from Firefox since it disables the delete key, I can not erase what I write. A help please.
Jquery code that I am using:
$(function(){
$('#input').keypress(function(e){
if(e.charCode < 48 || e.charCode > 57){
return false;
}
});
});