Posted By

cviolette on 11/12/10


Tagged

jquery


Versions (?)

Google Hosted jQuery


 / Published in: jQuery
 

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

  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  

You need to login to post a comment.