(jQuery) Only allow number keyboard input By Christoffer Wadensten | March 11, 2015 0 Comment $("input").on("keypress", function(e) { if(!jQuery.isNumeric(String.fromCharCode(e.which))) return false; });