My actual prob is asp post back issue and html controls.
i try to solve this in this way.
if ($('#rdb1').attr("checked")) {
document.cookie = $('#rdb1').attr("id");
check = document.cookie.split(';');
flag = check[0];
} else {
document.cookie = $('#rdb2').attr("id");
check = document.cookie.split(';');
flag = check[0];
}
if (flag == "rdb1") {
$('#rdb1').attr("checked", true);
$('#rdb2').attr("checked", false);
} if (flag == "rdb2") {
$('#rdb1').attr("checked", false);
$('#rdb2').attr("checked", true);
}
its work.But how to remove cookie i dont know.I search hear and findjavascript - delete cookie I don't want a function.Just want to delete cookies in next button.how to do this?Thanks.