Set a jQuery cookie to show popup only once

后端 未结 6 537
野性不改
野性不改 2020-12-14 02:36

I\'m an absolute newbie in jQuery. I\'m learning, but there is a Christmas message that I need to get up and running within no time.

I\'ve included these in the head

6条回答
  •  自闭症患者
    2020-12-14 03:32

    You can try this

    $(document).ready(function() {  
        if ($.cookie('test_status')) {
            return;
        }
    
        //Rest of your code here
    });
    

提交回复
热议问题