<input type="number" step="any">
HTML Fix input invalid number validation message in Chrome
Chrome requires that you explicitly set a step value if you wish to accept non-integers. A step value of any will allow all numbers.
Snippet Viewed 1642 times.
Share your HTML code snippets:
- Get some recognition & a link back to your site.
- Create your own code library.
- Help your fellow developers, as they have helped you.