I have this code:
<div style="margin:10px 5px 10px;float:right">
<a href="#" id="chk1" style="text-decoration:underline" title="<?php echo $this->__('Click here to open') ?>"><?php echo $this->__('Click here if you have any Promo Codes') ?></a>
<div class="discount" id="box1" style="display:none">
...but I have some problems with it. For one it takes two clicks to open. Also, when I click it makes the page scroll back to the top. Those are the two main issues I'm having but it would be nice if it would open on the first click, and not scroll back to the top and it would be really nice to get it to open slowly.
The way it works is that if one opens it it will stay open even if they leave the page and come back or vise versa.
I have jQuery v2.0.0 installed and don't want to install any more scripts than I have too.
Can someone please help me to get it to work correctly?