I am using this jquery.cookie plugin and I need to set value to TRUE or NULL/FALSE.
I am trying to do it like this: $.cookie(\'ff\', true, { expires: 30, path:
Another way to do this is
var mycookie = !($.cookie("cookiename")=='false')
Or:
if(!($.cookie("cookiename")=='false')){
//mycode
}
If the value is 'false' then ($.cookie("cookiename")=='false') will return true so we invert it by using ! which return false
if the value is not 'false' then it will return false so we invert it by using ! which return false