Cookies and Javascript addition ? (parseInt)
<p>i am new to jQeury .</p>

<p>i am working on some cookies script which my cookieA(name of cookie) is null(cotain nothing).
When a button is clicked , this script will add 10 to the value of cookieA . and when i click the button again , the value 10 will become 20 and so on.</p>

<p>Here's the script :</p>

<pre><code>$('.button').click(function(){
     $.cookie(cookieA, parseInt($.cookie(cookieA).val(),10) +10 , cookieOptions);
});
</code></pre>

<p>Please help me , this is making the value turn into NaN or null .</p>

<p>Thanks and have a wonderful day.</p>

<p>p/s i'm using the script from Klaus Hartly the author of jquery cookies.
p/s Cookieopstions is the settings for the cookies expiry date etc.</p>
