http://www.perlmonks.org?node_id=473922


in reply to Re^2: Request: Collapsible Side Bar (working solution)
in thread Request: Collapsible Side Bar

Just save the state either in a local cookie or via a request to a state-maintining server of your programming.