I used jQuery cookie to set cookie variable as below
for(ck=1;i<= $.cookie('ck'); ck++){
$.cookie('Answer'+answer, answer);
$.cookie('questions'+ck, $('#quid').text());
$.cookie('Answer'+ck, $('#'+answer).val());
$.cookie('status'+ck, statuss);
$.cookie('correctans'+ck, base64_decode(correctans));
}
It works great in Chrome and firefox. it also works correctly in IE if $ .cookie ('ck') is less than 9. If it is more than 9, answer9 cookies will be set and answer1 will be disabled in IE. What needs to be done to resolve this?
source
share