================
A simple, lightweight, responsive jQuery Accordion
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.accordion.js"></script>HTML attributes:
[data-acc-link] => Set a name that match with the content
[data-acc-content] => Set a name that match with the link
<div class="example1">
<div class="panel">
<div class="panel-heading" data-acc-link="demo1">Demo1</div>
<div class="panel-body acc-open" data-acc-content="demo1">
Content here
</div>
</div>
</div>$(function() {
$('.example1').accordion({
duration: 400 // default is 200,
multiOpen: false //default is true
});
});duration: 400,
// animation speed of the open / close item
multiOpen: true/false,
// default is "true". Set to "false" if you want to open one by one