On any Wiki-Page I have created a DIV:
<div id="content">This is the content which should be displayed on another site<br/></div>
Now, I would like to display this DIV on the Wiki Homepage. I have tried using following jQuery:
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.3.1.min.js"></script> <script> $("#content").load("https://mySharePoint/LinkToPageWhereDIVis.aspx #content"); </script>
However it doesn't display anything yet.
Is it maybe a wrong approach? If so, is there any workaround? Or is there any configuration setting in SharePoint which doesn't allow to display the DIV on another .aspx-Page?
I am using SharePoint 2013 on-premise.