I want to load the contents of an html file (home.html) into a div container located inside of a main html file (index.html)after clicking on a link and I want to use jquery/ajax to do it. I have tried to find answers but have only come across answers pertaining to php and not html.
this is the html code I have so far:
<!-- navigation bar --> <nav> <ul> <li><a href="#" data-target="home.html">HOME</a></li> <li><a href="#" data-target="work.html">MY WORK</a></li> <li><a href="#" data-target="about.html">ABOUT ME</a></li> <li><a href="#" data-target="services.html">SERVICES</a></li> <li><a href="#" data-target="contact.html">CONTACT ME</a></li> </ul> </nav> <!-- content div --> <div id="content"> </div> <!-- footer --> <section> </section> <footer> <p>Copyright © 2017, All Rights Reserved</p> </footer> </div>