Use MooTools and jQuery on the same page, avoiding conflicts

I recently had a situation where the design of a website needed the combination of both mooTools and jQuery, two libraries acting on the same page. mooTools gave me a coverflow style effect, while jQuery handled the overlapping navigation tabsYou are probably asking why I didn’t convert one script to the other library. The answer is because of financial constraints. If I had the time I would wade through all the docs and, probably convert the lesser of the two (jQuery – simple html replacement, adding classes) to the other (mooTools mooFlow). There are various answers to this question. Your best bet is to test each one.

  • Make sure that your jquery library call and script is after the other javascript library
  • Change all references to ‘$’ to ‘jQuery’
  • more to come…!

Related posts:

  1. Using jQuery to Manipulate HTML Structure – Using wrapInner to insert HTML

Related posts brought to you by Yet Another Related Posts Plugin.

Tags: ,

Leave a Reply