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

Bootstrap3 Modals

I am trying to implement a modal from bootstrap 3. Ive followed this example over and over and I seem to be doing everything correctly. Can someone figure out why this won't appear? I've set it up in paste.... http://pastie.org/private/zt6xieqhfxninfdv3ojxq thank you for whoever helps

1 Answer

James Barnett
James Barnett
39,199 Points

I noticed 2 things:

  • No closing angle bracket on the modal fade div
  • A misspelled class modal-diaglog, it has an extra g
<div class="modal fade" id="client" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"
<div class="modal-diaglog">

I copied your pastie into a working demo on codepen, fixed those 2 issues and it now works like a charm.