Introduction In this example I am going to show you how to allow only numeric values or digits in input field using React JS. You may have a requirement where you only need to allow user digits or numeric values for the input field. If user inputs non-numeric values then either you show an error…

Posted in React JS

Allow only numeric values or digits in input field using React

In this tutorial I am going to show you how to allow users only input numeric values or digits. If users enter non-numeric value then we will show an error message. We can also completely prevent from entering non-numeric values. In this case, we need to accept only numbers for a textbox or input field…

Posted in Angular

Allow only numeric values or digits in input field using Angular 10

This tutorial will show you how to convert from lowercase to uppercase using JavaScript onkeyup event. There is an input box where you will type and onkeyup JavaScript event will call a custom function which will convert the lowercase letter to uppercase letter. onkeyup means as you type the function will be called and the…

Posted in JavaScript

Convert lowercase to uppercase in JavaScript

Introduction The example – allow only numeric values or digits in a textbox using javascript or jquery – shows how to accept only numbers or digits in a textbox or input field using JavaScript or jQuery. Sometimes you need to accept only numbers for a textbox or input field instead of validating the value in…

Posted in JavaScript jQuery

Allow Only Numeric Values or Digits in a TextBox using JavaScript or jQuery