Try:
var $j = jQuery.noConflict();

Then you would use:
    $j(document).ready(function() {
            doSomething();
    });
On Oct 5, 2:14 pm, Dennis Madsen <den...@demaweb.dk> wrote:
> 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.

Reply via email to