The problem is that I want the minicart to pop down whenever the Add To Cart button is pressed, and im not sure I know how to do it right.
My new minicart is a box with a red X in the corner. If you click the link in the header ".tab" it will pop down, and if you click the X, it goes away.
Code: Select all
$(document).ready(function(){
$(".button").click(function(){
if ($(".dev").is(":hidden")){
$(".dev").slideDown("fast");
}
else{
$(".dev").slideUp("fast");
}
});
$("#xclose").click(function(){
$(".dev").slideUp("fast");
});
});
Does anyone have any advice?