This is my popup it show first time click only
How to achieve this?
<a href="#downloadme" class="fancyBoxLink">Value</a>
<div style="display:none">
<div id="downloadme">
<h1>Please fill following information to download files</h1>
<form action="<?php echo $this->getUrl('downloadenquire/index/downloadme') ?>" method="post" id="download">
<input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" />
<input type="text" name="name" placeholder="Name" required="true" class="input-text required-entry validate-alpha" />
<input type="text" name="email" placeholder="Email" required="true" class="input-text required-entry validate-email"/>
<input type="text" name="mobile" placeholder="Mobile" required="true" class="input-text required-entry validate-number"/>
<input type="submit" value="Submit" id="submit-download" />
</form>
</div>
</div>
<script type="text/javascript">
jQuery(document).ready(function($) {
$("a.fancyBoxLink").fancybox({
'href' : '#downloadme',
'titleShow' : false,
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'openEffect' : 'elastic',
'closeEffect' : 'elastic',
'maxWidth' : 800,
'maxHeight' : 600,
'fitToView' : false,
'width' : '35%',
'height' : '38%',
'autoSize' : false,
'closeClick' : false
}); });
</script>
<script type="text/javascript">
//< ![CDATA[
var customForm = new VarienForm('download');
//]]>
</script>