JQuery and Mootools are two of the Javascript Frameworks which are the most popular in website world. The two both are the most widely used frameworks even though there are several javascript frameworks which seem monotone, not interactive and doesn’t cool. However, using this in a certain website application is optional according to the users whether love and need to use it or not.

But, thanks to the Javascript framework, it makes web developer easier to develop the application in website. Then, the next question is: can developer use the two both simultaneously in one application?  The answer is, yes, the two both can be used in the same application. Otherwise, if you load the two both at the same time simultaneously, it definitely occur a conflict. What you have to be paid attention is jQuery uses $ for shortcut calling jQuery whereas Mootols uses $() to shorten calling document.getElementById().

But, you don’t have to worry because jQuery has already prepared function line which could be used to accomplish this conflict. The way is by adding function jQuery.noConflict() at the line after calling library jQuery.

<script type="text/javascript" src="/mootools.js"></script>
<script type="text/javascript" src="/jquery.js"></script>
<script type="text/javascript">
jQuery.noConflict();
</script>

For the usage, you can use jQuery word as the change of $ symbol. For instance:

jQuery(document).ready(function() {

jQuery(''#id'').html(''Hello World'');

});


If the jQuery use is too long, you could choose the alternative way by adding jQuery.noConflict() to a certain variable.

var thisShortcutforJquery = jQuery.noConflict();

//use that variable as the change of jQuery

thisShortcutforJquery (document).ready(function() {

thisShortcutforJquery (''#id'').html(''Hello World'');

});

In that way, the conflict matter between jQuery and Mootols has been accomplished properly. And then the two both could be used together to develop a particular application in website.

9 Applications You Must Have on Your Android, According to Reddit Users9 Applications You Must Have on Your Android, Acco...
Mon, Nov 17th, 2014 - Yoga Sdr

Reddit is one global forum that often gives any information related to many things, one of those is  [ ... ]

Hire Link Wheel And Article Writing Service For Effective ResultsHire Link Wheel And Article Writing Service For Ef...
Sat, Jun 08th, 2013 - Yoga Sdr

Natural and effective SEO gets in the much required traffic and visitors to a site. But have you eve [ ... ]

Some simple Tricks How To Differ Original iPhone and the Fake oneSome simple Tricks How To Differ Original iPhone a...
Sun, Oct 12th, 2014 - Yoga Sdr

There are so many types of smartphones available on market titled as iPhone product. You will find i [ ... ]

American Citizens Now Are Able to Send MMS through Google VoiceAmerican Citizens Now Are Able to Send MMS through...
Fri, Oct 17th, 2014 - Yoga Sdr

It has been long time that the users of Google Voice hope about the present of MMS feature on voice  [ ... ]

Using X-Ray Inspection To Survey PropertyUsing X-Ray Inspection To Survey Property
Wed, Nov 05th, 2014 - Yoga Sdr

When a business has made a massive investment in a piece of property, they need to make sure that th [ ... ]

5 Business Benefits of Moving to the Cloud
Thu, Aug 27th, 2015 - Yoga Sdr

I’m sure by now you’ve already heard what business cloud is, but are you compelled enough to try [ ... ]

No Doubt That GPS System Is Widely Used TodayNo Doubt That GPS System Is Widely Used Today
Mon, Sep 30th, 2013 - Yoga Sdr

Maybe it is not the first time you have heard about GPS system. Commonly, we can find GPS system in  [ ... ]

HTC Will Make 9 inch Tablet Belongs to GoogleHTC Will Make 9 inch Tablet Belongs to Google
Tue, Oct 14th, 2014 - Yoga Sdr

There is a leak that Google with work together with HTC in order to create the new Nexus tablet whic [ ... ]

Hot Web Learning

Guide to Using Images in Your Blog Posts
Sat, May 04th, 2013 - Yoga SdrGuide to Using Images in Your Blog Posts

Images can make your blog much more interesting to readers. When used correctly, they can even help  [ ... ]

Other Articles