I am rocking this Javascipt bit in <head>my page section :
<script type="text/javascript">
$(document).ready(function() {
$('dl.expander dd').expander
(
{ slicePoint: 50, widow: 2, expandEffect: 'show', userCollapseText: '[^]' }
);
});
</script>
This works great on the first page load; however, when I click <asp:button>which is inside <asp:updatepanel>, the page partially refreshes, but $(document).readyis never called again.
This is important because this Javascript in the section $(document).readycollapses and adds the "readmore" parameter to the list of paraffin waxes (or dl with class = "expander") on the page, most of which should be dropped by default.
source
share