Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
Yes they do (jive together), all you do is noconflict the jQuery. Having two libraries together is pretty retarded, I must say, however, unless there is some type of extensive application, such as a site contained within a CMS, that makes two libraries more realistic.
There are a couple ways to do it, but the way I noconflict jQuery is like this:
Code:
(function($) {
//a bunch of code goes here, and you may use the $ object instead of jQuery
)(jQuery);
Of course, for such a small amount of code, you may just use jQuery instead of $, like this:
Code:
jQuery("#expand").trigger("click");
Of course, as I mentioned, two libraries for an average site is borderline retarded. Are you sure MooTools doesn't have a function for triggering clicks? I know YUI does, and most libraries should have some means of doing it, since it is a common debugging device.
|