How to show DIV on first visit and not any visit after until browser is closed

前端 未结 3 1263
天涯浪人
天涯浪人 2021-01-24 15:57

I have the following script which slides in/slide out a DIV from the right:

// jQuery 1.9 > Toggle Event dep 1.8
$(\'#slideClick\').click(function () {
    va         


        
3条回答
  •  广开言路
    2021-01-24 16:41

    Set a cookie via jquery.

    check this answer: https://stackoverflow.com/a/8213459/4016757

    Or go directly to the plugin: https://github.com/carhartl/jquery-cookie

提交回复
热议问题