Jon Imms
asked on
Create a cookie onclick
How can i modify this function, so it creates a cookie called bt-test which expires in 1 year?
$(document).ready(function(){
$('#wt-cli-accept-all-btn, #wt-cli-reject-btn').on('click', function() {
$('html.has-not-scrolled #desktop-header, html.has-not-scrolled #mobile-header, html.has-not-scrolled main').animate({top: '0px'});
});
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Something like this
Open in new window