JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
<link rel="stylesheet" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
<script src="http://www.jeasyui.com/easyui/datagrid-groupview.js"></script>
<div id="p" class="easyui-panel" title="Panel 1" style="width:400px;height:200px;padding:10px;" data-options="style:{position:'absolute'}">
Tes
</div>
<div id="p2" class="easyui-panel" title="Panel 2" style="width:400px;height:200px;padding:10px;top:200px;" data-options="style:{position:'absolute'}">
Tes
</div>
JavaScript
$('#p').panel('panel').draggable({
handle: '.panel-header',
onStartDrag: function(){
$(this).css('z-index',$.fn.window.defaults.zIndex++);
}
});
$('#p2').panel('panel').draggable({
handle: '.panel-header',
onStartDrag: function(){
$(this).css('z-index',$.fn.window.defaults.zIndex++);
}
});