Answers for "check if panel is collapsed"

0

check if panel is collapsed

//Will return true if uncollapsed
$('#collapseDiv').hasClass('in');

//Will return true if in the process of collapsing
$('#collapseDiv').hasClass('collapsing');

//Will return true if collapsed
$('#collapseDiv').hasClass('collapse');
Posted by: Guest on June-30-2021

Browse Popular Code Answers by Language