Skip to content

Instantly share code, notes, and snippets.

@roncioso
Created March 10, 2010 22:38
Show Gist options
  • Save roncioso/328538 to your computer and use it in GitHub Desktop.
Save roncioso/328538 to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>Multiple jquery</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
var jq142 = $.noConflict(true);
</script>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.1.1.pack.js"></script>
<script type="text/javascript">
$(function(){
$("ul").append("<li>"+$().jquery+" ready!</li>");
jq142("ul").append("<li>"+jq142().jquery+" ready!</li>");
});
</script>
</head>
<body>
<h1>Multiple jquery</h1>
<ul>
<li>Versions loaded:</li>
</ul>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment