Posted By

jackkeller on 11/01/11


Tagged


Versions (?)

noConflict


 / Published in: JavaScript
 

  1. var $j = jQuery.noConflict();
  2.  
  3. $j(function(){
  4. //your jquery .ready magic here!
  5. $j("#sidebar li a").hover(function(){
  6. $j(this).stop().animate({
  7. paddingLeft: "20px&"
  8. }, 400);
  9. }, function() {
  10. $j(this).stop().animate({
  11. paddingLeft: 0
  12. }, 400);
  13. });
  14. });
  15. //the $j can be anything really
  16.  
  17. /* Alternately you can use */
  18.  
  19. jQuery.noConflict();
  20.  
  21. jQuery(document).ready(function($) {
  22. // $() will work as an alias for jQuery() inside of this function
  23. });

Report this snippet  

You need to login to post a comment.