Bootstrap Accordion first two panesl open on page load even tho code says collapsed
up vote
0
down vote
favorite
Here is the code
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingOne">
<h5 class="panel-title"><a class="accordionTitleBar collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria- controls="collapseOne" target="blank" onclick="return false;">Technical Committee</a>
</h5>
</div>
<div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne" style="height: auto;">
<div class="panel-body">
//text goes here
<div style="clear: both;"> </div>
</div>
</div>
</div>
As you can see there is no "in" in class="panel-collapse collapse" and the panel title shows "collapsed".
This works fine on anther page in the site
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingOne">
<h5 class="panel-title"><a class="accordionTitleBar collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne" target="blank" onclick="return false;">Our Staff</a>
</h5>
</div>
<div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne" style="height: 0px;">
<div class="panel-body">
//text goes here
<div style="clear: both;"> </div>
</div>
</div>
</div>
These are exactly the same code, so why is the first not collapsed on page load?
bootstrap-accordion
add a comment |
up vote
0
down vote
favorite
Here is the code
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingOne">
<h5 class="panel-title"><a class="accordionTitleBar collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria- controls="collapseOne" target="blank" onclick="return false;">Technical Committee</a>
</h5>
</div>
<div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne" style="height: auto;">
<div class="panel-body">
//text goes here
<div style="clear: both;"> </div>
</div>
</div>
</div>
As you can see there is no "in" in class="panel-collapse collapse" and the panel title shows "collapsed".
This works fine on anther page in the site
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingOne">
<h5 class="panel-title"><a class="accordionTitleBar collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne" target="blank" onclick="return false;">Our Staff</a>
</h5>
</div>
<div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne" style="height: 0px;">
<div class="panel-body">
//text goes here
<div style="clear: both;"> </div>
</div>
</div>
</div>
These are exactly the same code, so why is the first not collapsed on page load?
bootstrap-accordion
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Here is the code
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingOne">
<h5 class="panel-title"><a class="accordionTitleBar collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria- controls="collapseOne" target="blank" onclick="return false;">Technical Committee</a>
</h5>
</div>
<div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne" style="height: auto;">
<div class="panel-body">
//text goes here
<div style="clear: both;"> </div>
</div>
</div>
</div>
As you can see there is no "in" in class="panel-collapse collapse" and the panel title shows "collapsed".
This works fine on anther page in the site
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingOne">
<h5 class="panel-title"><a class="accordionTitleBar collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne" target="blank" onclick="return false;">Our Staff</a>
</h5>
</div>
<div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne" style="height: 0px;">
<div class="panel-body">
//text goes here
<div style="clear: both;"> </div>
</div>
</div>
</div>
These are exactly the same code, so why is the first not collapsed on page load?
bootstrap-accordion
Here is the code
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingOne">
<h5 class="panel-title"><a class="accordionTitleBar collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria- controls="collapseOne" target="blank" onclick="return false;">Technical Committee</a>
</h5>
</div>
<div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne" style="height: auto;">
<div class="panel-body">
//text goes here
<div style="clear: both;"> </div>
</div>
</div>
</div>
As you can see there is no "in" in class="panel-collapse collapse" and the panel title shows "collapsed".
This works fine on anther page in the site
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingOne">
<h5 class="panel-title"><a class="accordionTitleBar collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne" target="blank" onclick="return false;">Our Staff</a>
</h5>
</div>
<div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne" style="height: 0px;">
<div class="panel-body">
//text goes here
<div style="clear: both;"> </div>
</div>
</div>
</div>
These are exactly the same code, so why is the first not collapsed on page load?
bootstrap-accordion
bootstrap-accordion
asked Nov 9 at 22:11
Paeon
345
345
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53233908%2fbootstrap-accordion-first-two-panesl-open-on-page-load-even-tho-code-says-collap%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown