I am using the jquery download function in my masterpage.html application and it works fine. But the problem is that I need to place Jquery.min.js on all my content pages in order to use jquery functionality on my content page. I do not want to include it on all pages. It should link to my home page.
<html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"> <script type="text/javascript"> function loadContent(pagename) { $("#output").load(pagename); } </script> </head> <body> <a href="#" onclick="loadContent('about.html')">About</a> <div id="output"></div> </body> </html>
about.html
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"> <div id="content"> This is about page !! </div>
As you see my about.html again, including jquery, to use it on my about.html page. How to avoid this on all pages? Please, help
java javascript jquery jquery-ui
Mohammed Farooq Apr 23 '14 at 5:16 2014-04-23 05:16
source share