Do you want to know the really bad news? Components made for the admin side of Joomla often depend heavily on MooTools (up to recently, a very ancient version of MooTools). Want to know the good news? If you insert the jQuery script before the MooTools script, MooTools will override the $
variable, but you will still have access to the jQuery
variable. Doing it the other way around, jQuery will own the $, and some plugins and templates will probably yell at you.
So how you say? The easiest way is to follow this path:
/libraries/joomla/document/html/renderer/head.php
Go in that file right around line 129 where it says "Generate script file links". Before it runs the foreach
over that $document->_scripts...
array, insert this:
if ($mainframe->isAdmin) {
$strHtml .= $tab.'<script type="text/javascript" src="/media/system/js/jquery.js"></script>'.$lnEnd;
}
And just replace that src with the path to your jquery script. Now in your admin tool, you will be able to reference the jQuery object with the global jQuery
var like this:
jQuery('#myElement').hide();
And this is why Joomla tends to drive me insane. But hey..it wasn't really built for developers, it was built for users.