jQuery dialog box to remember user -


i'm using jquery dialog box on website, display form. don't want dialog box pop more once, same user. once have either filled out details or clicked on x (close) don't want them see message again. i've read can use cookies within form, unable find exact code use. here's code far:

<script>   $(function() {     $( "#dialog" ).dialog();   });   </script>         <div class="site-container">  <div id="dialog" title="basic dialog">     <?php echo do_shortcode( '[contact-form-7 id="92" title="test"]' ); ?> </div> 

what's best solution this?

many rachael

you can use cookies: https://github.com/carhartl/jquery-cookie.
when user interact close button can set cookie , next time can load cookie , conditionally open dialog.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -