I am currently using Jquery's EasyUI to display some tabs on my site, with some fairly simple code:
<!---->
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="https://projectadvocatesllc.sharepoint.com/sites/project_sb3/SiteAssets/dev_jqueryui/themes/default/easyui.css">
<script type="text/javascript" src="https://projectadvocatesllc.sharepoint.com/sites/project_sb3/SiteAssets/dev_jqueryui/jquery.min.js"></script>
<script type="text/javascript" src="https://projectadvocatesllc.sharepoint.com/sites/project_sb3/SiteAssets/dev_jqueryui/jquery.easyui.min.js"></script>
<script>
var tabs = ['<id MSOZoneCell_WebPartWPQ12>', '<id MSOZoneCell_WebPartWPQ13>'];
ExecuteOrDelayUntilScriptLoaded(initTabs, "sp.js");
func initTabs(){
//hide all of the webparts
for(var i=0;i<tabs.length;i++){
$('#' + tabs[i]).hide();
}
//show the first webpart in tab 1
}
function clickTab(id){
for(var i=0;i<tabs.length;i++){
if(tabs[i] === id){
$('#' + id).show();
}else{
$('#' + tabs[i]).hide();
}
}
}
</script>
<!---->
<div class="easyui-tabs" style="width:1200px;height:1000px">
<div title="Project Documents" style="padding:10px" onclick="clickTab('<id MSOZoneCell_WebPartWPQ12>')">
</div>
<div title="Project Updates" style="padding:10px" onclick="clickTab('<id MSOZoneCell_WebPartWPQ13>')">
</div>
</div>
If I were to want to take some of the webparts on the same page, and put each of them in the 4 tabs here, how could I do it?
Edit: I realize I should have given more information on the topic. First off, I am using sharepoint online.
Second, My goal is to have a calendar, document library, and 2 lists displayed in 4 different tabs (in that order). All of the webparts are in "zone 2".