I have a school project I am trying to complete. Its a fairly easy one, but due to my professors being in another country I am neither able to get answers from them frequently nor quickly.
I am trying to create a webpage that makes it so that when I click a link it causes it to load and append a .txt file underneath the sub navigation without changing any of the page.
This is my incomplete javascript code:
<script type="text/javascript" src="js/jquery-1.8.1.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var massage = ('massage.txt')
$('.selection').click(function() {
$('.selection').append('massage');
});
});
</script>
This is my HTML:
<div id="content">
<div id="spaselection">
<p class="selection">
Massage
Facials
Laser Hair Treatment/Electrolysis
Nails
</p>
</div>