hide/show within UpdatePanel
I'm new to jQuery, I'm using a link which toggles the visibility of an area.
This is within a .Net UpdatePanel.
I've managed to get round the document.ready / pageLoad for event binding.
The first line of my document ready hides the area, so the page starts up hidden, and hiding/showing works fine.
BUT... if I trigger something that causes a postback the state of the area is lost.
I understand why this happens... the 'hide' is in the document.ready, I can't put it in the pageLoad as I may not want it hidden if it has already been set to show.
Is there anyway I can show something and keep track of it's state so that after a .net updatepanel postback it sets it's state back?
Thanks.