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.

New ISO cooperative strategy means more profit for...
Fri, Jun 19th, 2015 - Yoga Sdr

The card payment industry harbors stiff competition just like any other sector in the financial econ [ ... ]

How to Choose the Right UPS for Your ComputerHow to Choose the Right UPS for Your Computer
Sat, Feb 09th, 2013 - Yoga Sdr

Security is paramount in every aspect of life, that’s why we have locks on our houses, seatbelts a [ ... ]

Best New Android AppsBest New Android Apps
Thu, Mar 03rd, 2016 - Yoga Sdr

Post Thousands of new Android applications enter the marketplace every month. So whether you're loo [ ... ]

Ultrabook Vs Netbook: The New Age Portable LaptopsUltrabook Vs Netbook: The New Age Portable Laptops
Fri, Nov 30th, 2012 - Yoga Sdr

Both the Ultrabook computer and notebook share similar characteristics, with many differences in bet [ ... ]

Could Microsoft Surface Overthrow iPad?Could Microsoft Surface Overthrow iPad?
Tue, Jun 19th, 2012 - Yoga Sdr

Recently, Microsoft just released Surface, a kind of tablet computer made it by itself. This periphe [ ... ]

Top Cloud Computing Security Issues for Large EnterprisesTop Cloud Computing Security Issues for Large Ente...
Thu, Jul 19th, 2012 - Yoga Sdr

Cloud computing has become one of the top trends in enterprise, giving businesses the ability to sto [ ... ]

Phantom, Enable your photo Postings to be LimitedPhantom, Enable your photo Postings to be Limited
Mon, Oct 27th, 2014 - Yoga Sdr

In using social media, sharing photos is one of the most activities people often do. But, for some r [ ... ]

How to Set Up a WiFi RouterHow to Set Up a WiFi Router
Tue, May 07th, 2013 - Yoga Sdr

Even if you are a small family or group of roommates, it is difficult to coexist in the same reside [ ... ]

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