-
-
Save evansolomon/e8fda70b6e6dca1378df to your computer and use it in GitHub Desktop.
This file contains 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
<html> | |
<head> | |
<title>Testing jQuery</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
</head> | |
<body> | |
We have <span class="noconflict"><code>jQuery</code></span> and <span class="conflict">good old <code>$</code></span> here. | |
<script> | |
$('.conflict').on('click', function() { | |
alert('this click handler came from $'); | |
}); | |
jQuery('.noconflict').on('click',function(){ | |
alert('this click handler came from jQuery'); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment