Поиск файла cookie, который нужно установить, когда пользователь нажимает на ссылку, открывает файл div, затем пользователь может обновить страницу и увидеть, что div все еще открыт.
======= HTML =======
<a class="show-settings" href="#"></a>
======== jQuery =======
$(function () {
//Toggle Settings
var s = $("a.show-settings");
//On click to toggle settings
s.click(function () {
$("#s4-ribbonrow, #s4-titlerow").toggle();
});
//Add/Remove text
s.toggle(function () {
//$(this).text("Hide Settings");
}, function () {
//$(this).text("Show Settings");
});