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 trialBrent Shill
2,459 PointsHTML Forms Select Element Error
I am following along with the video when I put my select element code as Nick does it errors on me and it doesn't work in the view in workspaces. Does anyone see what I did wrong?
<label for="job">Job role:</label>
<select id="job" name="user_job>
<option value="frontend_developer">Front-End Developer</option>
<option value="php_developer">PHP Developer</option>
<option value="python_developer">Python Developer</option>
<option value="rails_developer">Rails Developer</option>
<option value="web_developer">Web Developer</option>
<option value="wordpress_developer">Wordpress Developer</option>
<option value="android_developer">Android Developer</option>
<option value="ios_developer">iOS Developer</option>
<option value="mobile_developer">Mobile Developer</option>
<option value="business_owner">Business Owner</option>
<option value="freelancer">Freelancer</option>
</select>
</fieldset>
<button type="submit">Sign Up</button>
</form>
</body>
</html>
3 Answers
Jason Anello
Courses Plus Student 94,610 PointsHi Brent,
You don't have the closing quote on the "user_job" value.
<select id="job" name="user_job>
Brent Shill
2,459 PointsThank you! Sometimes you can stare for hours and not see it! Sheesh!
Florin Veja
6,912 PointsBrent,
On the second line of code you are missing a quote between user_job and >. Instead it should be < select id="job" name="user_job" > instead. Notice the missing quote in your code.