Survey-form test not passing

Survey-form test not passing
0

#1

Please i need help passing all tests in the Survey-form project. I have everything written correctly but still getting this error for test 9: Minimum number should be defined : expected NaN not to be NaN. In my code i have a min value set for an input so I dont know where this is coming from. Please someone have a look.

https://codepen.io/cortehz/pen/KGPyra.

Or


<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<h1 class="h1class" id="title">Survey Form</h1>
<p id="description">this is a short explanation</p>

<main class="main-class">
  <section class="survey-form-section">
       <form id="survey-form">
      <p>Please fill out this form to help improve Manchester United Football Club</p>
      
      
      <label id="name-label">Name:</label>
      <input type="text" id="name" name="name" placeholder="Please Enter your name" required>
         
      <label id="email-label">Email:</label>
      <input type="email" id="email" name="email" placeholder="Email Address" required>
         
      <label id="number-label">Age:</label>
      <input type="number" id="number" name="number" placeholder="Age" required>
         
         <fieldset>
    <legend>Do you think Manchester United are among the Top 3 in the World?</legend>
    <input id="one" type="radio" name="items" value="one">
    <label for="one">Absolutely</label><br>
    <input id="two" type="radio" name="items" value="two">
    <label for="two">No, Not At all</label><br>
    <input id="three" type="radio" name="items" value="three">
    <label for="three">Not Sure</label>
  </fieldset>
        
         
         <fieldset>
    <legend>Where would Manchester Uniter Finish in the EPL this Season</legend>

    <label for="position">League Position:</label>
    <input type="number" min="1" max="20" step="1" required/>

</fieldset>
            
        <fieldset>
                     <legend>Which is United's Lucky Jersey</legend>
         <select name="player" id="dropdown">

  <option value="red">Red: Home Jersey</option>
  <option value="black">Black: Away Jersey</option>
  <option value="pink">Pink: 3rd Jersey</option>

</select>
      </fieldset>
         
         <fieldset>
           <legend>Who is your Player(s) of the Season so far</legend>
         <input type="checkbox" name="vehicle1" value="Bike"> Ander Herrera<br>
           <input type="checkbox" name="vehicle1" value="Bike"> Romelu Lukaku<br>
  <input type="checkbox" name="vehicle2" value="Car"> David De Gea
           
       </fieldset>
         
                 <label for="advanced">Additional Comments:</label>
        <textarea id="advanced" name="advanced"
                  rows="3" cols="33" maxlength="300"
                  wrap="hard">
        </textarea>
         
        
      <input type="submit" id ="submit" name="submit" value="Submit">
    </form>
  </section>
</main>

I changed the input type from range to number and vice-versa but test 9 still wont pass.


#2

Try giving “min” and “max” attribute to this input tag.
This might help.


#3

Thanks a lot . That solved it.