I have the following:
function pageLoaded() {
$(".panel-dividers").click(function () {
$(this).parent().toggleClass("collapsed");
return false;
});
});
How do I keep the class collapsed in the div after postback with jquery?
Bring a server side indicator into the jquery and test for it.
Alternatively, you could use an AJAX approach and return an indicator in the success callback.