AJAX request using jQuery does not work
So I am new to jQuery and I'm trying to set up an html page that has tabs. Each tab should show a different html page as follows: <div id="tabs"> <a href="page1.html"><div class="tabdiv tabActive">Page1</div></a> <a href="page2.html"><div class="tabdiv">Page2</div></a> <a href="page3.html"><div class="tabdiv">Page3</div> </a> <a href="page4.html"><div class="tabdiv">Page4</div></a> </div> <div class="tabscontent" id="ajax-content"> Default text </div> So what I want is that when I click on page 1, page1.html will be loaded up in div.tabscontent . This is the jQuery code that I have. $(document