Build a Survey Form, textarea and submit not found
In the code I have so far the test goes through all stories except the last two. They are there !
Build a Survey Form, textarea and submit not found
In the code I have so far the test goes through all stories except the last two. They are there !
If you need help, please link your code, and the project you are working on?
If you need help you have to provide code examples, people here ainât wizards
Sorry for that, i tried to paste the html code but that did not work. I canât figure out how to do that here - keep on trieing.
Are you using codepen? If so you could share it. Otherwise you can copy/paste the relevant code and use the </> button above the reply text-box to add code-snippets around your elements.
I am working locally. It will be moved to github soon.
<fieldset class="field">
<div class="input">
<label for="t">Giv us a comment</label>
<textarea id="t" name="t" placeholder="Eventually change this"></textarea>
</div>
</fieldset>
<fieldset class="field">
<div class="input">
<label for="s">Submit your form</label>
<button id="s" type="submit" name="s">Hit !</button>
</div>
</fieldset>
</form>
</div>
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
Thank you, the suite is at https://codepen.io/srbberlin/pen/gZGRKb
possibly a bug?..
it looks ok ⌠i edited the id to actually match âsubmitâ ⌠and it still wont pass heh
The button with id=âsubmitâ is not inside the form element : expected 0 to be above 0
Thatâs what i thought âŚ
Later I will decide whats to do.
Thank you !
The problem was that it should be like this <form id="survey-form"><div id="form-outer">
not the other way around (or you can try moving the closing tag of the div outside the form), you created a div above the form, but ended it inside the form which caused the problem.
Great, that was it !
thank you !