top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the use for no conflict method in jquery ?

+1 vote

Also tell me how to use this noConflict() method.

posted Sep 23, 2014 by Sidharth Malhotra

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

jQuery.noConflict() has one simple purpose: it enables you to load multiple instances of jQuery on the same page—typically different versions of jQuery at that. You may be wondering why you would ever want to do that. There are two primary reasons. First, you may want to use a jQuery plugin that is not compatible with the newest version of jQuery, while writing most of your jQuery code on the newest version of jQuery. Second, you may have no control over what jQuery version is loaded on a page, and you need to be sure a specific version of jQuery is loaded for your jQuery code or jQuery plugin to work (such as is the case when developing public WordPress plugins). Regardless, jQuery.noConflict() can address these concerns for you.

answer Sep 25, 2014 by Deepak Negi
Similar Questions