I have the following code which works well to open / close / toggle a series of divs.
$("a").click(function(){
var myelement = $(this).attr("href")
$(myelement).slideToggle("slow");
$(".toggle:visible").not(myelement).hide();
});
What I would like is for the div to remain open if the page is refreshed, or saved with the anchor link. ie. the finance div should stay open if the url is:
http://mywebsite/page#finance
Thanks