Prevent jQuery conflicts


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

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


Copy this code and paste it in your HTML
  1. jQuery(document).ready(function($){
  2.  
  3. $('.element').click(function(){
  4.  
  5. });
  6.  
  7. })

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.