javascript - Only one Modal Pops Up - Bootstrap -
i'm having problem bootstrap - 1 of modals popping up! i've reviewed code , couldn't find problem is. first modal coded others, don't know what's going wrong. here's codepen (like jsfiddle): codepen
and here code: references
<link href="favicon.ico" rel="icon" type="image/x-icon"> <link rel="stylesheet" href="css/bootstrap.min.css"> <link rel="stylesheet" href="css/bootstrap-responsive.min.css"> <link rel="stylesheet" href="style.css"> <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script> <script src="js/bootstrap.js"></script>
thumbnail gallery
<div class="container"> <div class="row"> <div class="span12"> <ul class="thumbnails"> <li class="span3"><a href="#somo" class="thumbnail" data-toggle="modal"><img src="http://placehold.it/150x150" class="img-polaroid" alt=""></a></li> <li class="span3"><a href="#groth" class="thumbnail" data-toggle="modal"><img src="http://placehold.it/150x150" class="img-polaroid" alt=""></a></li> <li class="span3"><a href="#gibson" class="thumbnail" data-toggle="modal"><img src="http://placehold.it/150x150" class="img-polaroid" alt=""></a></li> <li class="span3"><a href="#baskin" class="thumbnail" data-toggle="modal"><img src="http://placehold.it/150x150" class="img-polaroid" alt=""></a></li> </ul> </div> <div class="span12"> <ul class="thumbnails"> <li class="span3"><a href="#obrien" class="thumbnail" data-toggle="modal"><img src="http://placehold.it/150x150" class="img-polaroid" alt=""></a></li> <li class="span3"><a href="#coh" class="thumbnail" data-toggle="modal"><img src="http://placehold.it/150x150" class="img-polaroid" alt=""></a></li> <li class="span3"><a href="#chada" class="thumbnail" data-toggle="modal"><img src="http://placehold.it/150x150" class="img-polaroid" alt=""></a></li> <li class="span3"><a href="#panikkar" class="thumbnail" data-toggle="modal"><img src="http://placehold.it/150x150" class="img-polaroid" alt=""></a></li> </ul> </div> </div> </div>
modals
<div id="somo" class="modal hide fade" tabindex="-1"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">x</button> <h3>meagan somo</h3> </div> <div class="modal-body"> <p><img src="http://placehold.it/230x270" alt="" class="pull-left">text here.</p> </div> <div class="modal-footer"> <button class="btn" data-dismiss="modal">close</button> </div> <div id="groth" class="modal hide fade" tabindex="-1"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">x</button> <h3>desi groth</h3> </div> <div class="modal-body"> <p><img src="http://placehold.it/230x270" alt="" class="pull-left">text here.</p> </div> <div class="modal-footer"> <button class="btn" data-dismiss="modal">close</button> </div><div id="gibson" class="modal hide fade" tabindex="-1"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">x</button> <h3>jessie gibson</h3> </div> <div class="modal-body"> <p><img src="http://placehold.it/230x270" alt="" class="pull-left">text here.</p> </div> <div class="modal-footer"> <button class="btn" data-dismiss="modal">close</button> </div><div id="baskin" class="modal hide fade" tabindex="-1"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">x</button> <h3>connor baskin</h3> </div> <div class="modal-body"> <p><img src="http://placehold.it/230x270" alt="" class="pull-left">text here.</p> </div> <div class="modal-footer"> <button class="btn" data-dismiss="modal">close</button> </div><div id="obrien" class="modal hide fade" tabindex="-1"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">x</button> <h3>nik o'brien</h3> </div> <div class="modal-body"> <p><img src="http://placehold.it/230x270" alt="" class="pull-left">text here.</p> </div> <div class="modal-footer"> <button class="btn" data-dismiss="modal">close</button> </div><div id="coh" class="modal hide fade" tabindex="-1"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">x</button> <h3>elizabeth coh</h3> </div> <div class="modal-body"> <p><img src="http://placehold.it/230x270" alt="" class="pull-left">text here.</p> </div> <div class="modal-footer"> <button class="btn" data-dismiss="modal">close</button> </div><div id="chada" class="modal hide fade" tabindex="-1"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">x</button> <h3>rachel chada</h3> </div> <div class="modal-body"> <p><img src="http://placehold.it/230x270" alt="" class="pull-left">text here.</p> </div> <div class="modal-footer"> <button class="btn" data-dismiss="modal">close</button> </div><div id="panikkar" class="modal hide fade" tabindex="-1"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">x</button> <h3>manoj panikkar</h3> </div> <div class="modal-body"> <p><img src="http://placehold.it/230x270" alt="" class="pull-left">text here.</p> </div> <div class="modal-footer"> <button class="btn" data-dismiss="modal">close</button> </div>
for full code, check out codepen.
you're missing </div>
@ end of first <div class="modal-footer">
Comments
Post a Comment