I want to load a new page when I click one of the menu from sidebar. But the JavaScript load function doesn't work.
$(document).ready(function(){
$( 'button' ).click(function() {
$('#load').load('page1.html');
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div id="load"></div>
<button>Click to load a new page</button>
Please need help.
page1.html.