Seeking assistance to complete the JavaScript code for loading HTML pages into a specific div. The goal is to load page1, page2, and subsequent pages into the div with id="content". Any help will be greatly appreciated. Thank you!
Here is the jsFiddle link for this code
HTML
<div id="menu">
<nav>
<ul>
<li ><a class="active" href="1.html" ><b>Page1</b></a></li>
<li ><a href="2.html" ><b>Page2</b></a>
</li>
<li ><a href="3.html"><b>Page3</b></a>
...
CSS
nav ul ul {
display: none;
}
nav ul li:hover > ul {
display: block;
}
...
JAVASCRIPT
$(document).ready(function(){
$('nav ul li a').click(function(){
$('nav ul li a').removeClass('active');
$(this).addClass('active');
});
});