Tuesday, June 30, 2009

[jQuery] Re: JQuery & Cookies

Hi there,

There is a plugin for that.. Check this out
http://plugins.jquery.com/project/Cookie

Regards
----- Original Message -----
From: "craigeves" <craigeves@googlemail.com>
To: "jQuery (English)" <jquery-en@googlegroups.com>
Sent: Tuesday, June 30, 2009 2:36 AM
Subject: [jQuery] JQuery & Cookies


>
> I would like to apply a cookie to this script so that I can return to
> the page at a later date and it would remember my last action. Can
> anyone help? Thanks in advance.
>
> <script>
> $(document).ready(function(){
> $(".close").click(function () {
> $("#welcome").fadeIn("slow");
> });
>
> $(".show").click(function () {
> $("#welcome").fadeOut("slow");
> });
>
> $("a.toggle").click(function () {
> $("a.toggle").toggle();
> });
>
> });
> </script>

No comments: