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

HTML HTML Forms Choosing Options Create a Select Menu

Submit Button Code Challenge

I've checked the forum for this answer and what I found didn't fix my problem.

For the final task in the code challenge of adding the "Place Order" button. I've tried both lines of the following code but I'm still getting it marked wrong:

<button type="submit">Place Order</button>

and

<input type="submit" value="Place Order">

Am I missing something here?

4 Answers

Ken Alger
STAFF
Ken Alger
Treehouse Teacher
 <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>
      <button type="submit">Place Order</button>

Worked for me between the form tags.

Dai Phong
Dai Phong
20,395 Points
       <button>Place Order</button>

Hi, Dai:

Thanks for your suggestion but that didn't work either. I'm starting to think there is a bug in this quiz.

 <button type="submit">Place Order</button>

This is the correct line so my guess is you're putting it in the wrong place. Remember this isn't part of the options list (i.e. outside the Select element) although it's still inside the form.

Thank you, Andrew. I just discovered and posted that the error was happening because I forgot to close the select tag so the quiz wasn't recognizing my correct code. Once I added it, it was marked correct.

Ken! Thank you, thank you, thank you for posting your full markup.

I didn't close the select tag and since it was missing the quiz wasn't recognizing my correct 'Place Order' code.

Thanks again! Very much appreciated.