javascript - Bootstrap accordian style table - show/hide all -


i have table set accordion when row clicked displays div underneath row. clicked again hides it.

i create button allows user expand or hide all.

var showing = true; $('#expandlist').click(function () {     if(showing) {         $(".collapse").collapse("hide");         showing = false;     } else {         $(".collapse").collapse("show");         showing = true;     } }); 

the hide portion works, show not. how detect if collapsed keep showing variable updated.


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -