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

CSS Framework Basics Prototyping with Bootstrap Building a Carousel

Justin Hanson
Justin Hanson
4,235 Points

My Text editor doesn't recognize "data-slide" , "data-target" or "data-toggle"

My text editor does not recognize those data commands, so my dropdown menu and carousel are not working as expected

Boy Buijsman
Boy Buijsman
13,773 Points

What editor do you use? I had no problem with Notepad++. Make sure you use the correct formating

data-target="..."

Justin Hanson
Justin Hanson
4,235 Points

I've run my code through notepad and Sublimetext, so it's not the editor. The layout / look of the page is exactly as I planned it, but no action occurs when I click on the dropdown menu.

I think it may have something to do with my script links to Jquery and/or JS.

Here are my script links. Could they be the problem? :

script type="text/javascript" src="/js/boostrap.min.js"></script>
<script type="text/javascript" src="/js/scripts.js"></script>
<script type="text/javascript" src="/jquery.min.js"></script>
<script type="text/javascript" src="/less-1.3.3.min.js"></script>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
</body>
</html>

1 Answer

Boy Buijsman
Boy Buijsman
13,773 Points

Yo could try and remove the backslashes before the links and rearange them in order. Put the .js with the carousel and drop menu last.