tags:

views:

36

answers:

1

Hi,

I'm trying to use the JQuery cookies library http://code.google.com/p/cookies/ But am not able to set key value pairs within the cookie. I can't see how in the documentation, does anyone know how?

Thanks

+1  A: 

From the documentation:

$.cookies.set( 'sessid', 'dh3tr62fghe' );

So, in this case sessid is your key, dh3tr62fghe is value.

If this is not what did you ask, sorry then.

bluszcz
thanks out of intrest where did you see that documented?
test
http://code.google.com/p/cookies/ - on the first page in "basic usage"
bluszcz
Thanks guess it was staring at me in the face!
nav
I don't think that does it! It creates a cookie called sessid and a value of dh3tr62fghe as per the docementation.
nav
and what do you want to do?
bluszcz