I'm trying to use jQuery inside a CMS which use mootools - therefore I
use noConflict.
I have this sample code:
jQuery.noConflict();
(function($) {
function doSomething() {
//some jQuery Stuff here..
alert("something");
}
})(jQuery)
jQuery(document).ready(function() {
doSomething();
});
I would like to call the function doSomething() when my DOM is ready.
Why can't I? I also like to call the function as a JavaScript method
in my HTML.