Try setting expires to a negative number to delete the cookie.
On Dec 3, 5:50 pm, Leandro Vieira Pinho <[EMAIL PROTECTED]> wrote: > Hi Guys, > > I´m working with this piece of code: > > $(this).toggle( function() { > $(this).children().slideToggle('fast', function() > { $.cookie('_wp_el_' + i, i, { expires: 30, path: '/', domain: > 'leandrovieira.com' }); }); > }, function() { > $(this).children().slideToggle('fast', function() > { $.cookie('_wp_el_' + i, null, { expires: 30, path: '/', domain: > 'leandrovieira.com' }); }); > }); > > The cookie isn´t dele anyway. There´s something wrong? > > Regards