Using jQuery with Other Javascript Libraries
jQuery has a method, $.noConflict(), for avoiding the conflicts.
<html>
<head>
<script src="otherFramework.js"></script>
<script src="http://java2s.com/Book/JavaScriptDemo/jQuery/jquery-1.8.0.min.js"></script>
<script>
jQuery.noConflict();
jQuery("<p>I am a paragraph</p>").appendTo(body);
$.methodFromOtherLibrary();
</script>
</head>
<body>
</body>
</html>
Home
JavaScript Book
jQuery
JavaScript Book
jQuery
Introduction:
- The jQuery Basics
- Pattern of using jQuery
- Chain methods jQuery
- Using jQuery with Other Javascript Libraries