event.currentTarget.value = event.currentTarget.value.replace(/\D/g, ”);
Here is Jquery code:
// Filter non-digits from input value.
this.value = this.value.replace(/\D/g, ”);
Text Input Box:
<input id=”number” type=”text” placeholder=”Enter Number Only” onKeyUp=”return noNumbers(event)” />
There are so many jquery code, tricks and i will let you know all. Please do comment if you any query related to this post. Thank you. Therichpost.com
You Might Also Like
Hello to all, welcome to therichpost.com In this post, I will tell you, Angular datatables with custom button event click...