I am creating a web page where I have an input text field in which I want to allow only numeric characters like (0,1,2,3,4,5...9) 0-9.
How can I do this using jQuery
Why so complicated? You don't even need jQuery because there is a HTML5 pattern attribute:
The cool thing is that it brings up a numeric keyboard on mobile devices, which is way better than using jQuery.