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.

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.