how to give relative path to jquery load function -
<script src="jquery.js"></script> <script> function loadcontent() { $("#includedcontent").load("../projects/menu.html"); // not working } </script> <div id="includedcontent"></div> <script> loadcontent() </script>
$(document).ready(function(){ $('#includedcontent').load("../projects/menu.html", function() { //stuff }); });
Comments
Post a Comment