Skip to content

Instantly share code, notes, and snippets.

@evansolomon
Created March 6, 2013 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evansolomon/e8fda70b6e6dca1378df to your computer and use it in GitHub Desktop.
Save evansolomon/e8fda70b6e6dca1378df to your computer and use it in GitHub Desktop.
<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