Posted By

Priestd09 on 06/04/13


Tagged

jquery


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

Priestd09
Beppoi
KenanRecebli


Prevent jQuery conflicts


 / Published in: jQuery
 

Here is a simple and clever way to prevent script conflicts when using jQuery. This snippet will show how to scope the dollar sign.

  1. jQuery(document).ready(function($){
  2.  
  3. $('.element').click(function(){
  4.  
  5. });
  6.  
  7. })

Report this snippet  

You need to login to post a comment.