Skip to content

Instantly share code, notes, and snippets.

@internoma
Created May 20, 2013 18:53
Show Gist options
  • Save internoma/5614420 to your computer and use it in GitHub Desktop.
Save internoma/5614420 to your computer and use it in GitHub Desktop.
Non-Conflicting jQuery
<!-- Example 1: Non-Conflicting jQuery -->
jQuery(document).ready(function(){
jQuery("#jqtest").click( function() {
alert("jQuery is working!");
});
});
<!-- ******************************************************* -->
<!-- Example 2: Non-Conflicting jQuery -->
var $jq = jQuery.noConflict();
$jq(document).ready(function(){
$jq("#jqtest").click( function() {
alert("jQuery is working!");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment