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.

When Is The Best Time To Reserve Your Domain Name?
Wed, Oct 12th, 2016 - Yoga Sdr

There's so much to do when you are starting your own business. You'd be amazed at the sheer length o [ ... ]

Movavi Screen Video Capture TipsMovavi Screen Video Capture Tips
Tue, Jan 19th, 2016 - Yoga Sdr

Movavi is an all in one screencasting software that allows you to perform screen video capture, edit [ ... ]

The Smartphone Advantage for the Present GenerationThe Smartphone Advantage for the Present Generatio...
Wed, Jul 17th, 2013 - Yoga Sdr

In recent times, mobile phones are no longer used as only a communication device. It has more applic [ ... ]

Optimize the Software for Creating a Video with Nice QualityOptimize the Software for Creating a Video with Ni...
Thu, Oct 09th, 2014 - Yoga Sdr

If you have a great desire for creating a special movie from your own camera, it is much better that [ ... ]

Importance of SEO for an Ecommerce WebsiteImportance of SEO for an Ecommerce Website
Tue, Jul 09th, 2013 - Yoga Sdr

For any ecommerce website, SEO (Search Engine Optimisation) is a crucial thing. SEO helps websites t [ ... ]

Free Call from an Android via Google Hangouts within 1 Minute until 2015Free Call from an Android via Google Hangouts with...
Tue, Nov 04th, 2014 - Yoga Sdr

Google Hangouts is the convenient way to keep in touch with family and friends. Thanks to the chat a [ ... ]

You Need to Try These Five Android Navigation AppsYou Need to Try These Five Android Navigation Apps
Wed, Sep 17th, 2014 - Yoga Sdr

While travelling finding way is one of the difficult tasks but now there is no more obstacles. With  [ ... ]

A Simple and Easy to Apply to Save Energy when Using A SmartphoneA Simple and Easy to Apply to Save Energy when Usi...
Wed, Nov 12th, 2014 - Yoga Sdr

Energy saving is such a popular term recently since a couple years ago. It is not only related to ga [ ... ]

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