Html5 Expander
Bind to the collapsing event by type:jqxExpander
Author: http://jqwidgets.com
HTML
<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<div id='jqxExpander'>
<div><span style="background-color:red;" id="header">Widget</span> Header</div>
<div>Content</div>
</div>
JavaScript
$("#jqxExpander").jqxExpander({
width: 200,
height: 100,
theme: 'energyblue'
});
$('#header').on('click', function (event) {
$('#jqxExpander').jqxExpander("disable");
setTimeout(function(){
$('#jqxExpander').jqxExpander("enable");
}, 5);
});