New Zenner
- Join Date:
- Nov 2008
- Posts:
- 3
- Plugin Contributions:
- 0
Display hidden Div on "Add to cart" button click.
Hi Everyone, hopefully one of you can help me with this small issue as I cannot find exact details anywhere on the forum.
I am trying to add an animated .gif (repeating loading image) inside an initially hidden div below the "Add to cart" button. I would then require the div to load once the user clicks on the "add to cart" button.
The reason for adding this feature is so when a user chooses to upload a file with their order, instead of them thinking the browser has crashed whilst the file is uploading, a loading image will appear and will ensure they don't quit.
I have already successfully added the div to the "tpl_product_info_display.php" file below the add to cart section.
Can anyone tell me what code I need to add to hide the div initially, and have it appear when the "Add to cart" button is clicked.
Many thanks in advance!