If you want an input in your form that you will only take the number in that input, no alphabet or any symbol, you can…