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

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -