Prev Demo
Forcing User To Enter Range Of Numbers In Textbox
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <meta charset="UTF-8" /> </head> <body> <form> Number (1 to 10): <input type="number" name="myNumber" id="myNumber" max="10" min="1" required /> <input type="submit" value="Submit" /> </form> </body> </html>
Note: We DO NOT save your trial code in our database.
Output