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 trialStephen Ford
2,836 PointsError and no select bar.
Right in the beginning of this video we add 2 lines of code to the app.js folder...
var $select = $("<select></select>"); $("#menu").append($select);
After this code is entered he does a preview and the select box is already in place.
When I did the same the new select box was visible so I checked in the console to find this error message.
Blocked loading mixed active content "http://code.jquery.com/jquery-1.11.0.min.js"
Is this normal? Did I miss the addition of some code along the way?
Thanks! Stephen
3 Answers
Pau Manrique Roca
6,370 PointsI was having trouble making this work, the solution I found was replacing the src in the <script> tag (inside index.html) changing
"http://code.jquery.com/jquery-1.11.0.min.js"
for
"//code.jquery.com/jquery-1.11.3.min.js"
Purvi Agrawal
7,960 PointsThank U Pau !! I was facing the same issue and ur solution made it work :)
Stephen Bolton
Front End Web Development Techdegree Student 7,933 PointsAlso worth noting because it was frustrating for me. In my version of Chrome the Select bar doesn't show up unless it has options inside of it.
Stephen Ford
2,836 PointsStephen Ford
2,836 PointsThanks Pau,
This solved the issue.
Cheers!