Expand/Contract Collapse Block with Javascript
I wish to dynamically collapse and expand a collapsible block.
I've used both:
Tiggr('collapsblock_options_holder').prop('data-collapsed', true) ;
Tiggr('collapsblock_options_holder').attr('data-collapsed', true) ;
However, the block does not collapse or expand.
Do I need to refresh the element? If so, how?