2

I am working on C#.net project, and I use multiple javascript libraries for menu and image sliders and other, but there is a conflict appeared, how can I avoid that?

Alaa
  • 207
  • 1
  • 7
  • 19

1 Answers1

1

Right after the load of the jQuery library you call the $.noConflict(); and then all your calls to jQuery are made using the jQuery keyword. Example from the jQuery site:

<script type="text/javascript" src="other_lib.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
  $.noConflict();
  jQuery(document).ready(function($) {
    // Code that uses jQuery's $ can follow here.
  });
  // Code that uses other library's $ can follow here.
</script>
Aristos
  • 64,863
  • 15
  • 114
  • 148