Test Suite 9 / Survey Form - If I enter numbers outside the range of the number input, I will see an HTML5 validation error.'

Hello everyone.

I am new to programming and currently, I am having trouble with the project Survey Form. During two or three days I am just focusing on building the structure and solve the test suite case in item 9 - “If I enter numbers outside the range of the number input, I will see an HTML5 validation error.” but I can’t find a solution yet…

For me, I just need to ask for input from the user and delimited a min and a maximum value (set the range) I tried it using the following code


and even make a test in my codepen.io to verify the values that the user can input but my code continues to fo fall in the test suite…I tried to research about NaN (an error appointed in the test suite) but can’t understand how my code is affected by it…

please, any help will be very welcome, and if possible share some articles, text, or information that can help me understand my error I will be grateful!

my codepen.io link is - https://codepen.io/henriquecd-tech/pen/JjKepYE

Test suite asks you to define min and max range on the tag with id number
In your HTML, you’ve id='number' on the input for age, and the min and max you defined are for year of experience, either add min, max to the age input or switch id='number' to the years of experience input

1 Like

Tks a lot, man!! really happy with the solution rsrrs

incredibly… two or three days trying to solve this problem and the question was read (and understand) what the user stories asked at this point! I will pay more attention to the next challenges and start to consider if I understand all is required!

image|690x157