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?
Since OP's question was tagged with 'angularjs', the cleanest solution would probably be to use a directive. Several solutions for this approach have previously been explained here:
angularjs: allows only numbers to be typed into a text box