Thank you @coskuntekin:disqus for this beautiful snippet!
Question: how do you set the checkbox to 'always' checked so that when we decide to put 2 buttons with different options then the checkbox must always checked regardless of what button is clicked - skipping the condition whether it is checked or not?
Yh3nG () - 10 years ago - Reply 0
you'r welcome :)
I can give you some advice help to your problem.
1) You can use {$.removeCookie('name');} for 'always check' button, or {expires: (int)} value must be '0'
2) For 'skipping button' also you can use {expires: (int)} example 1 day or 365 day, you decide :)
coskuntekin () - 10 years ago - Reply 0
First of all, thank you for this snipp. I want to show this modal only 1 time. How can I set the cookie even if the user click on the close (x) button? Thanks again.
Fernando () - 10 years ago - Reply 0
You can change "expires: 1" (js -line : 18) also you can find here (https://github.com/carhartl... how to change. Enjoy.
coskuntekin () - 10 years ago - Reply 0
If I was to update content in this, how would I reset the cookie or make a new one? Just changed "my_cookie"?
Adam Argo () - 10 years ago - Reply 0
You can change "ID" ( <div class="modal fade" id="myModal">) and also you can chnage "my_cookie". If you want debug or viewing your page you can use `private window` in your browser.
Happy Coding :)
coskuntekin () - 10 years ago - Reply 0