$.cookie ('test') will return your cookie if it's been set, but it will return an empty collection if it's not. An empty collection doesn't evaluate to false so your test won't work. You need to test if the collection returned by $.cookie contains something meaningful.
On Jun 25, 9:04 am, mtest <[EMAIL PROTECTED]> wrote: > I know that it true > if ( !($.cookie('test') ) { > $.cookie('test', 'yes');} > > but it now ork :)))) > why???? :))