jquery - Hide div for set period after clicking on button -


i got float button can close. here code of button :

   <div class="primary"><button id="ferme" class="popup-button" data-modal="popup">deviens un lhibou</button><div class="alert-close"></div></div> 

here jquery code makes close button deleting whole div :

(function($) { $(document).ready(function(c) {     $('#alert-close').on('click', function(c){         $(this).parent().fadeout('slow', function(c){         });     });  }); })(jquery); 

my question : how set cookies hide div set period after clicking on button ?

thanks lot


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -