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

JavaScript jQuery Basics (2014) Creating a Mobile Drop Down Menu Perform: Part 1

Valerie Smith
PLUS
Valerie Smith
Courses Plus Student 5,244 Points

RESOLVED--Select bar at top is not showing any values. Should I add select and option tags?

After going through the video my web page is not displaying the select menu. In the html page should I add select and option tags? even if they have no values?

https://teamtreehouse.com/workspaces/22993342

What am i doing wrong?

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi Valerie! I'd love to help you sort this out, but unfortunately the link you've provided is private to only you. For us to be able to view your workspace we are going to need to see a snapshot of it. This will allow us to make a copy and help debug the problem :sparkles:

2 Answers

Steven Parker
Steven Parker
229,744 Points

:point_right: At least one line may not be copied as "exactly" as the others. :smile:

In the part where you "append option to select", your code and the video are different. You have a jQuery function (being passed an undefined value) where the video has the variable that represents the select element:

  $(select).append($option);  // this is your code
  $select.append($option);    // this is what is shown in the video

Making this change will allow your select element to be populated with the options.

Valerie Smith
PLUS
Valerie Smith
Courses Plus Student 5,244 Points

Steven! You are a genius! I literally just made that correction on my own. And everything worked perfectly! Thanks a ton. 90% of my issues tend to be typos of a similar fashion.

Best-