Skip to main content

How to remove plus and minus characters from input type number

Here is a solution on how to remove the plus and minus characters from the input type number and retain the existing value of the input field excluding the plus and minus symbols, i have used jquery for this hack this can also be achieved with plain javascript.

Here is the code snippet which removes the plus and minus signs from number field



Comments

Popular posts from this blog

Adding a button in HTML | styling a button

To add a button in a HTML page use <input> tags and specify the type as button like so
<input type=”button” value=”submit” action=”submit.php”> this code will be rendered in browser like in Figure 1.1
Further more if you wish to style this button we can apply a set of CSS rules to make the buttons look pretty here are a few examples: Download code for these buttons here



Gradient background | Using CSS

To create a gradient background we have to use the background-image property and set the gradient in CSS like this: