Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

Error 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
Pau Manrique Roca
6,370 Points

I 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"

Thanks Pau,

This solved the issue.

Cheers!

Purvi Agrawal
Purvi Agrawal
7,960 Points

Thank U Pau !! I was facing the same issue and ur solution made it work :)

Stephen Bolton
seal-mask
.a{fill-rule:evenodd;}techdegree
Stephen Bolton
Front End Web Development Techdegree Student 7,933 Points

Also 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.