Jquery toggle should expand after Page reload
Posted
by James123
on Stack Overflow
See other posts from Stack Overflow
or by James123
Published on 2010-05-07T20:53:58Z
Indexed on
2010/05/07
20:58 UTC
Read the original article
Hit count: 262
I wrote below code for Collapse/Expand some section. It is working fine. Finally If I click "Save" button and I am re-loading page again in asp.net. So then sections are going default Colleapse again. I need them back to expand. How can I do that?
$(function() {
$('tr.subCategory')
.css("cursor", "pointer")
.attr("title", "Click to expand/collapse")
.click(function() {
$(this).siblings('.RegText-' + this.id).toggle();
});
$('tr[@class^=RegText-]').hide().children('td');
})
© Stack Overflow or respective owner