can't store cookie with jquery
<p>I have a check-box list where users can check only two options. The two options selected are stored in an array $values[]. Then, I remove any non-numeric characters from the string value. Now I want to store the number values as cookies to copare them later:</p>

<pre><code>// store value 1
str1 = values[0];
number1 = str1.replace(/\D/g,"");
$.cookie('value1', number1, {expires: 7});

// store value 2
str2 = values[1];
number2 = str2.replace(/\D/g,"");
$.cookie('value2', number2, {expires: 7});

    //get both values and compare them
result = $.cookie('value1') - $.cookie('value2');
</code></pre>

<p>this doesn't seem to work.. any help?</p>

<p>n.b. I'm using a plugin (jquery-cookie) for this. </p>
