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.

Tactics to Get Quality ‘Likes’  and Attract Visitors on Facebook PageTactics to Get Quality ‘Likes’ and Attract Visito...
Fri, Feb 28th, 2014 - Yoga Sdr

Along with enjoying fastest growth in the world of social media, Facebook has become the most influe [ ... ]

7 Things to Think About When Starting an e-Commerce Website7 Things to Think About When Starting an e-Commerc...
Wed, Oct 01st, 2014 - Yoga Sdr

ONE OF THE MOST APPEALING ASPECTS OF E-COMMERCE IS THAT IT HAS THE ABILITY TO HAVE AN IMMEDIATE IMPA [ ... ]

Heading off the Xiaomi Acceleration, Lenovo Released on Market: K3 Heading off the Xiaomi Acceleration, Lenovo Releas...
Tue, Dec 09th, 2014 - Yoga Sdr

In the origin country, Lenovo is releasing again the latest smartphone Android namely Lenovo K3 "Mus [ ... ]

Options For Pain Management
Thu, Mar 03rd, 2016 - Yoga Sdr

It seems so many Americans today are seeking pain relief for an injury or chronic ailment. The obesi [ ... ]

New Nintendo Art Academy and The Brand New Nintendo 3DS XL – A Match Made in Creative Heaven!New Nintendo Art Academy and The Brand New Nintend...
Fri, Dec 14th, 2012 - Yoga Sdr

The Nintendo DSi and Nintendo 3DS games consoles are the perfect platforms for creative applications [ ... ]

The Way How to Get Notification through Android When Your Favourite UpdateThe Way How to Get Notification through Android Wh...
Sun, Nov 23rd, 2014 - Yoga Sdr

Along this time android has facilitated almost all of human needs in this life. Smartphone also make [ ... ]

Top Technology Trends for StudentsTop Technology Trends for Students
Mon, Sep 29th, 2014 - Yoga Sdr

Technology is constantly changing. In fact, there are so many trends, it is impossible to keep up wi [ ... ]

Drivers of the Stock Market
Sun, Sep 18th, 2016 - Yoga Sdr

As the world of online trading has rapidly grown over the last thirty years, the markets have change [ ... ]

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