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 Working with jQuery Collections jQuery-Specific Selectors

Code doesn't hide $secureLinks. But will hide $odd

code is written exactly as instructed but doesn't run. I use Chrome. If I try to hide $odd it works but if I try to hide $secureLinks it does not.

const $odd = $('a:odd'); const $secureLinks = $('a[hrefˆ="https://"]'); $secureLinks.hide();

1 Answer

I changed the caret to the one that is above the 6 on my keyboard and the links were hidden. Code is below:

const $odd = $('a:odd');
const $secureLinks = $('a[href^="https://"]');
$secureLinks.hide();

Thanks I didn't realize my keyboard settings where off, my 6 key typed the small caret instead of the normal one.