Hi, so I'm trying to make a welcome message disappear when clicked on close and set the cookies to remember it so after reload the message doesn't appear again. <script type="text/javascript"> $(document).ready(function(){ $(".pane .delete").click(function(){ $(this).parents(".pane").animate({ opacity: 'hide' }, "slow"); }); }); </script> Code (markup): Please help.
Something like : $.cookie("clicked", "true", { path: '/' }); in the ".click" function then either you do it in JQuery: if ($.cookie("example") == "true") { $(".pane").hide(); } But you'll probably see it disappear quickly when you load the page OR you hide it in PHP (or whatever your server language is) before the page is sent to the client.
Still can't figure how to make this work. I'm a total noobs when it comes to js/jquery :/ Can anyone else help?