Skip to main content
added 277 characters in body
Source Link
Per Jakobsen
  • 32.4k
  • 1
  • 34
  • 62

This is a common problem when using multiple JavaScript libraries as many of them define $()

SharePoint is using ASP.NET Ajax so if you include JQuery you should do that in noConflict mode.

You turn that on using

jQuery.noConflict();

Now $ will never mean jQuery unless you use constructs like:

jQuery(document).ready(function($){
    /* code using $ */ 
});

or

(function($) {
    /* code using $ */ 
})(jQuery);

This is a common problem when using multiple JavaScript libraries as many of them define $()

SharePoint is using ASP.NET Ajax so if you include JQuery you should do that in noConflict mode.

This is a common problem when using multiple JavaScript libraries as many of them define $()

SharePoint is using ASP.NET Ajax so if you include JQuery you should do that in noConflict mode.

You turn that on using

jQuery.noConflict();

Now $ will never mean jQuery unless you use constructs like:

jQuery(document).ready(function($){
    /* code using $ */ 
});

or

(function($) {
    /* code using $ */ 
})(jQuery);
Source Link
Per Jakobsen
  • 32.4k
  • 1
  • 34
  • 62

This is a common problem when using multiple JavaScript libraries as many of them define $()

SharePoint is using ASP.NET Ajax so if you include JQuery you should do that in noConflict mode.