View Full Version : Hide Paypal "view cart" button until something added to cart
04-12-2005, 01: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.
04-12-2005, 02:05 AM
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';
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.