I am using jQuery cookie library. I need create a cookie and if the cookie exists to update the value. How can I do this?
   if ($.cookie('checkID') == null {
           var getHost = getHostname.hostname;
            switch (getHost) {
                case 'www.google.com':
                    var GetParamID = 'Abc1';
                    break;
                case 'www.yahoo.com':
                    var GetParamID = '345Cdv';
                    break;
             default:
                    var GetParamID = '';
      $.cookie('checkID', GetParamID , { path: '/' });
    }
 
     
    