jQuery Window

Bind to the resized event by type: jqxWindow. Author: http://jqwidgets.com

HTML

<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<script src="http://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<div id='jqxwindow'>
    <div>Header</div>
    <div>Content</div>
</div>
<div id="button1">Set Draggable</div>
<div id="button2">Reset</div>

JavaScript

$('#jqxwindow').jqxWindow({
    theme: 'energyblue',
    draggable: false
});
$('#button1').jqxButton({
    theme: 'energyblue',
    width: 125
});
$('#button2').jqxButton({
    theme: 'energyblue',
    width: 125
});

$('#button1').on('click', function() {
    $('#jqxwindow').jqxWindow({ draggable: true });
});

$('#button2').on('click', function() {
    $('#jqxwindow').jqxWindow({ draggable: false });
});