Recently, I have seen a project in which JavaScript library worked fine but had some issue in the pages, when I saw and found there was conflict with $ function. I have override the $ function with jQuery.noConflict() resolve the issues.
Here's an example
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Avoid jQuery conflict with multiple JavaScript library in asp.net</title>
<script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.4.min.js" type="text/javascript"></script>
<script type="text/javascript">
//Reassign jQuery to another shortcut
var $AamirHasan = jQuery.noConflict();
$AamirHasan(document).ready(function () {
$AamirHasan("#div1").text("welcome to aspxtutorial.com");
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<h2>
Avoid jQuery conflict with JavaScript library in asp.net
</h2>
<p>
<div id="div1">
</div>
</p>
</div>
</form>
</body>
</html>
Download
noConflict.zip (945.00 bytes)
See live demo