In my Index view I have this:
<script type="text/javascript" src="~/Scripts/jquery-2.0.0.js"></script>
<script type="text/javascript" src="~/Scripts/Javascript1.js"></script>
<div id="dictionary">
</div>
<div class="letter" id="letter-a">
<a href="#">A</a>
</div>
In my Javascrip11.js I have this:
$(document).ready(function () {
$('#letter-a a').click(function () {
$('#dictionary').load('HtmlPage1.html');
alert('Loaded!');
return false;
});
});
And in my HtmlPage1 I have this:
<div>Definitions for letter A</div>
I want the Javascript to load this HtmlPage1 and insert into the div dictionary of the page when I click the anchor tag.....I have HtmlPage1 both in the Scripts folder and in the ViewFolder.. Both doesnt work.... I am getting the alert but the snipet is not being inserted....