specifies a field for entering a number. what i need is there should be only numbers , only one decimal points , back space allowd. Using the right value for the type attribute will force users to enter information in an input field in a certain format. The defines a field for entering a telephone number.. Here in our example we will provide pattern validation for username, password, mobile number and email with Template-driven form as well as Reactive form. Here we are allowing only decimal and integers but not any other symbol. Here is the simple HTML code that lays us the markup of the webpage, Try it below! jQuery: Restrict "number"-only input for textboxes including decimal points Last update on February 26 2020 08:07:52 (UTC/GMT +8 hours) jQuery Practical exercise Part - I : Exercise-39 According to W3C specifications, you need to also add the step attribute to support that. Tip: Always add the