jQuery-update-cookie Wert

Ich bin mit jquery-cookie-Bibliothek zum erstellen cookie mit JQuery. Wie kann ich ein update Wert des Cookies? Ich muss es schaffen neue cookie und wenn das cookie vorhanden ist, zu aktualisieren. Wie kann ich dies tun?
Code, den ich bekam:

v.on('click', function(){
      var d = $(this).attr('role');       
      if(d == 'yes')
          {
           glas = 'koristan.'   
          }else {
              glas = 'nekoristan.'
          };
       text = 'Ovaj komentar vam je bio ' + glas;

       //This part here create cookie
       if(id_u == 0){
           $.cookie('010', id + '-' + d);
       }        
      $.post('<?php echo base_url() ?>rating/rat_counter', {id : id, vote : d, id_u : id_u}, function(){
         c.fadeOut('fast').empty().append('<p>' + text).hide().fadeIn('fast'); 
      });
    })
InformationsquelleAutor Sasha | 2012-08-10
Schreibe einen Kommentar