Created
May 20, 2013 18:53
-
-
Save internoma/5614420 to your computer and use it in GitHub Desktop.
Non-Conflicting jQuery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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