This is the link that is initally clicked.
<ul class="megamenu-list menuapp">
<li class="title">Types</li>
<li><a href="app/sop.html">Sales & Operations Planning</a></li>
</ul>
When this link is clicked, it must navigate to the app.html page.
Inside the app.html, i have a section with id= dynamic, within which i am trying to load the sop.html file.
<section id="dynamic">
</section>
This is the jquery code that i am trying to work with.
$(".menuapp a").click(function(e){
var showthis = $(".menuapp a").attr("href")
e.preventDefault();
alert(showthis);
var url = "app.html";
$(location).attr('href',url);
$("#dynamic").load(showthis));
});
This loads the sop.html page on the window and not inside the section id="dynamic" of the app.html page.
I don't get what is wrong. Please help.