jquery - Define a minimun height when collapsing in Bootstrap -


in bootstrap, want set height when collapses. want keep collapsible area shown using .collapse.in class. when collapses won't set height zero.

before collapse:

enter image description here

after collapse:

enter image description here

update:

http://jsfiddle.net/r6eaw/1158/

css:

#collapseone{     min-height:60px } 

jq:

$('#accordion').on('hidden.bs.collapse', function () {     $('#collapseone').removeclass('collapse').css({                 'overflow': 'hidden',         'height': '60px'     }) }) 

Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -