I'm looking for a jQuery noConflict example that shows 2 jQuery plugins in the same code snippet and how to use jQuery.noConflict
so that these plugins should function. Where would it apply in the scenario below?
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="http://example.com/jquery.plugin_1.js"></script>
<script type="text/javascript" src="http://example.com/jquery.plugin_2.js"></script>
<script type="text/javascript">
$(document).ready(function() {
// plugin_1 code...
}
</script>
<script type="text/javascript">
$(document).ready(function() {
// plugin_2 code...
}
</script>