Survey Form submit button test failed

Hey all,
My project is failing the test on the submit button, I am not sure what I have done wrong.
I have it inside the form element as:

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0.

Link to the challenge:

You want to give your button a value of submit:

Your button’s type attribute should have a value of “submit” : expected undefined to equal ‘submit’
AssertionError: Your button’s type attribute should have a value of “submit”

You may also need to give it an ID of “submit” so that the test script can find it

Good Luck!

PS I found that by clicking on the “Tests” button to find the error on your pen

1 Like

Kickflips is right, it is super helpful to look at the error codes in the “Tests” button. In this particular case I was able to get the test to pass in your pen by moving the id=“submit” from your div surrounding the button to the actual button itself like this:

      <div><button id="submit" type="submit" class="button_1">Submit</button></div>

Hope that helps, happy coding!

1 Like

Thank you Miguel,
I appreciate the assistance. I kinda figured it was something simple that I was not seeing (ran into a lot of that doing these projects, amazing how a semi-colon or space in the wrong spot can mess things up).

1 Like

Thank you kickflips
I appreciate your help.