Skip to main content

Posts

Showing posts with the label Allow only numeric input in textbox using AngularJs

Allow only numbers in textbox keydown, keypress jQuery

Allow only numeric input in textbox using AngularJs In this article, I am sharing code sample for allow only numeric input in textbox using keydown, keypress jQuery. The example for allow only numbers in textbox as following -         $( function () {             $( "#txtloanAmount" ).keydown( function (e) {                 allowOnlyNumber(e);             });             $( "#txtmonths" ).keydown( function (e) {                 allowOnlyNumber(e);             });             var allowOnlyNumber = funct...