Vanilla Javascript demo to show valid form input numbrer 2 to 8 else error message.
Enter number
Submit