javascript - Why doesnt Bootstraps panel collapse work with JSF? -
here code panel:
<div class="panel-group destinfo" id="accordion"> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" data-parent="#accordion" href="#collapseone"> <h3><b>overview</b></h3> </a> </h4> </div> <div id="collapseone" class="panel-collapse collapse in"> <div class="panel-body"> <p>some text here</p> </div> </div> </div> </div> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.0.min.js"></script> <script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
when click panel, doesnt open whole panel <p>some text here</p>
. did when tried in notepad++, in netbeans(maven web application + jsf framework) doesnt work. wrong here?
for bootstrap, need load jquery before bootstrap libraries, this:
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script> <script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
javascript jquery html twitter-bootstrap xhtml
No comments:
Post a Comment