...

View Full Version : Hide Paypal "view cart" button until something added to cart



niemie
04-12-2005, 12:53 AM
I am about to create a CSS class that will be a box containing a Paypal "View Cart" button. I want the DIV containing this class to be hidden if until someone adds something to their cart, but I'm not sure how to go about it.

Thanks for any help.

diablo2_v
04-12-2005, 01:05 AM
Hello,

You will have to do something like this once something was added to the cart.

document.getElementById ( ~~The Div ID Goes HERE ~~).style.visibility = 'visible';

If you would like to hide it then

document.getElementById ( ~~The Div ID Goes HERE ~~).style.visibility = 'hidden';



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum