Google Hosted jQuery


/ Published in: jQuery
Save to your folder(s)

Code to add Google-hosted jQuery to site. Includes noConflict to avoid conflicts with other libraries.


Copy this code and paste it in your HTML
  1. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
  2. <script type="text/javascript">
  3. jQuery.noConflict(); // Reverts '$' variable back to other JS libraries
  4. jQuery(document).ready(function($) {
  5.  
  6. });
  7. </script>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.