Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
kennethortiz
5,825 PointsSubmit Button Challenge
The challenge task states to "Add a submit button with the text "Place Order".
I can see the submit button in the Preview with Place Order but I keep getting it wrong.
I also set the input type to 'Submit'. I can still see it in Preview but keep getting it wrong.
What am I missing?
<form action="index.html" method="post"> <h1>Shirt Order Form</h1>
<label for="color">Shirt Color</label>
<select id="color" name="shirt_color">
<option value="red">Red</option>
<option value="yellow">Yellow</option>
<option value="purple">Purple</option>
<option value="blue">Blue</option>
<option value="green">Green</option>
<option value="Orange">Orange</option>
</select>
<input type="button" value="Place Order">
</form>
4 Answers
jase richards
10,379 PointsI think you need
<button type="submit">Place Order</button>
You don't make the button in a input tag The button has its own tag
Michael Alaev
5,415 PointsYou should add "submit" instead off an "button" type like this:
<input type="submit" value="Place Order" >
Hope that helps. Mike
kennethortiz
5,825 PointsWow fast answer! That worked, thank you!
jase richards
10,379 Pointslol yeah I literally just did a form challenge so it was fresh on my mind.
Mikkel Kingo
2,843 PointsThe type should be set to submit. <input type="submit" value="Place Order">