Html5 Expander
Invoke the invalidate method of the jqxExpander. Author: http://jqwidgets.com
by jqwidgets
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>Header</div>
<div>Content</div>
</div>
<div>
<input style="margin-top: 5px;" type="button" id='jqxButton' value="Invalidate" />
</div>
JavaScript
$("#jqxExpander").jqxExpander({
width: 200,
height: 100,
theme: 'energyblue'
});
$("#jqxButton").jqxButton({
height: '30px',
width: '160px',
theme: 'energyblue',
});
$('#jqxButton').on('click', function () {
$('#jqxExpander').jqxExpander('invalidate');
});