I need help with my survey form-story #9 & #12

#9 If I enter numbers outside the range of the number input, I will see an HTML5 validation error.
#12Inside the form element, I can select an option from a dropdown that has a corresponding id="dropdown".
this are what tey asked for.
first, I don’t know how to create a range in input type=“number”.
second, I don’t know what is a dropdown and how I add it to my form.
I will be glad if someone will help me, thank you.

Try this one:

      <input type="number" id="quantity" name="quantity" min="1" max="5">

  • max - specifies the maximum value allowed
  • min - specifies the minimum value allowed
  • step - specifies the legal number intervals
  • value - Specifies the default value

Source: HTML input type="number"

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.