noConflict working for alert by not css change

noConflict working for alert by not css change

Im using the jQuery noConflict method here: http://drupal.org/node/1058168

Now, both of the following work:

$jq("document").ready(function(){
    alert
('alert');
});

$

("document").ready(function(){
    alert
('alert');
});

However this does work:

$("document").ready(function(){
    $
(".view-product-slideshow .pager-num-1 img").css("display","none");
});

But this does not:

$jq("document").ready(function(){
    $jq
(".view-product-slideshow .pager-num-1 img").css("display","none");
});

Ive used the noConflict method once before and it worked fine. Ive no idea why it would work for the alert but not the CSS change.

My site is here: http://smartpeopletalkfast.co.uk/pp4/shop/baby-essentials/sleepsuit-plush

Thanks

    • Topic Participants

    • james