.hide and PostBack Question
So I'm using this very simple code to hide some content. My only issue, is when I have a postback on the page it obviously hides all the expanded content. Is there a way around this? For instance if I expand a section, then click on a control that does a postback, I want that section to stay expanded, and not be re-hide again.
-
$(document).ready(function()
{
//hide the all of the elements
$(".viewSectionBody").hide();
//toggle the body on head click
$(".viewSectionHead").live('click', function()
{
$(this).next(".viewSectionBody").slideToggle(600);
});
});