Can you think of a reason why this code could cause other Jquery code
to fail?

Here's my Jquery code that stops working when I add your code above:

$(function(){
        $('div#rightShoppingCartButton').click(function(){
                toggleCart(this);//Shopping Cart div has been clicked
        });
});
//Make the shopping cart div layer visible when the
"#rightShoppingCartButton" button is clicked
function toggleCart(div){
        d = $(div);
        var rsccb = "#rightShoppingCartContainsBox";
        if($(rsccb).css('display') == "none") {
                $(rsccb).css("display",'inline');
        }
        else {
                $(rsccb).css("display",'none');
        }
}

Reply via email to