Advertisement
Guest User

Untitled

a guest
May 6th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. <script src="path/to/jQuery compatible with plugin"></script>
  2. <script>
  3. /* must call this before loading other version*/
  4. $jQ_1.8= $.noConflict();
  5. </script>
  6. <script src="jquery-1.3"></script>
  7.  
  8. <script>
  9. /* use "$" as you normally do for exisitng site code*/
  10. $(function(){
  11. /* code using 1.3*/
  12. })
  13.  
  14. /* for higher version jQuery use different *document.ready**/
  15. $jQ_1.8(function( $){/* pass "$" as argument to allow using "$" in code if you want*/
  16. $(selector).pluginThatUsesDifferentVerion()
  17.  
  18. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement