I would really appreciate some help with this. I have searched and searched the internet but cannot find information on exactly what I am trying to do. I have a javascript toggle function:
function toggle_change() {
var ele = document.getElementById("change_log");
var text = document.getElementById("Toggle_change");
if(ele.style.display == "none") {
ele.style.display = "block";
text.innerHTML = "-";
}
else {
ele.style.display = "none";
text.innerHTML = "+";
}
}
What I am trying to do is set a cookie that will remember if the display status is "none". This is probably something simple but I don't know much about javascript obviously. I've tried a few different approaches but I can never get the script to actually set a cookie. Thanks for your assistance.