Search for question
Question

Question Five

Write the HTML and the JavaScript code that validates a numeric input. The

number entered by the user should be between 1 and 10.

When the user enters an invalid value, the background of the input will be red

and the sentence "The number should be between 1 and 10" will be displayed

in red just after the form.

Number: 66

register

The number should be between 1 and 10

Fig: 1