Monday, May 20, 2024
134
rated 0 times [  135] [ 1]  / answers: 1 / hits: 133708  / 11 Years ago, wed, october 30, 2013, 12:00:00

Can I check if Bootstrap Modal currently Shown / Hidden Programatically?



Like bool a = if(#myModal).shown(); ?



I need true/false


More From » twitter-bootstrap

 Answers
13
alert($('#myModal').hasClass('in'));


It will return true if modal is open


[#74625] Tuesday, October 29, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
peytont

Total Points: 215
Total Questions: 110
Total Answers: 111

Location: Armenia
Member since Sat, Dec 31, 2022
1 Year ago
;