Html Splitter

Invoke the collapse method of the jqxSplitter. Author: http://jqwidgets.com

by jqwidgets

HTML

<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<div id='jqxSplitter'>
    <div style="background-color: #97FFAF"></div>
    <div style="background-color: #E8C0AF"></div>
</div>
<div>
    <input style="margin-top: 20px;" type="button" id='jqxButton' value="Collapse" />
</div>

JavaScript

$("#jqxSplitter").jqxSplitter({
    width: '300px',
    height: '300px',
    theme: 'energyblue'
});
$("#jqxButton").jqxButton({
    height: '30px',
    width: '120px',
    theme: 'energyblue'
});
$('#jqxButton').on('click', function () {
    $('#jqxSplitter').jqxSplitter('collapse');
});