

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
HTML5 Input type “number” in Firefox
The min attribute of the input type number isn’t supported by Firefox, but it works correctly in Google Chrome.
Example
Let us see an example −
<!DOCTYPE html> <html> <head> <title>HTML input number</title> </head> <body> <form action = "" method = "get"> Mention any number between 1 to 10 <input type = "number" name = "num" min = "1" max = "10"><br> <input type = "submit" value = "Submit"> </form> </body> </html>
- Related Questions & Answers
- Make HTML5 input type=“number” accepting dashes
- Render ASP.NET TextBox as HTML5 Input type “Number”
- Chrome input type=“number” CSS styling
- HTML5 <input type=“file” accept=“image/*” capture=“camera”> display as image rather than “choose file” button
- HTML5 input type range for vertical orientation possible in Firefox?
- HTML5 Input type=number removes leading zero
- Not showing a placeholder for input type=“date” field with HTML5. How to solve it?
- Input type URL in HTML5
- canvas.style.display = “block” not working in HTML5
- How to limit maximum items on multiple input (<input type=“file” multiple />)?
- To “user-scalable=no” or not to “user-scalable=no” in HTML5
- input type week really exist in HTML5?
- Is it autofocus=“ autofocus” or autofocus in HTML5?
- What is the difference between “lang” and “type” attributes in a script tag?
- HTML5 video not playing in Firefox
Advertisements