Adding cookies in jQuery .slideToggle
I have a simple .slideToggle function in my project, which is:

>     $(document).ready(function() {
>     $('.example5').show().before('<a class="blocks-hide">Show/Hide</a>');
>     $('div.blocks-hide').click(function() {
>       $('.example5').slideToggle(250);
> 	$('div.blocks-hide').toggleClass('blocks-show'); 
> 	return false;
>     }); });

And now I want to use [cookies plugin][1] with  this function. I want the browser to remember whether I had clicked the ".blocks-hide" link when I visited the webpage previously, and collapse/expand ".example5" accordingly. But heck, I don't know how to use cookies plugin.. Please help me guys. I'm very new to JS.


  [1]: http://plugins.jquery.com/files/jquery.cookie.js.txt
Adding cookies in jQuery .slideToggle
===

I have a simple .slideToggle function in my project, which is:

>     $(document).ready(function() {
>     $('.example5').show().before('<a class="blocks-hide">Show/Hide</a>');
>     $('div.blocks-hide').click(function() {
>       $('.example5').slideToggle(250);
> 	$('div.blocks-hide').toggleClass('blocks-show'); 
> 	return false;
>     }); });

And now I want to use [cookies plugin][1] with  this function. I want the browser to remember whether I had clicked the ".blocks-hide" link when I visited the webpage previously, and collapse/expand ".example5" accordingly. But heck, I don't know how to use cookies plugin.. Please help me guys. I'm very new to JS.


  [1]: http://plugins.jquery.com/files/jquery.cookie.js.txt