When I\'m giving input type number the letter e and special charecters are also displaying in input field. I want to display only digits. How to block them?
e
You can check it if it's a number or not.
// Restrict e, -, + for html input number $(document).on('keypress', ':input[type="number"]', function (e) { if (isNaN(e.key)) { return false; } });