I want to make an element horizontally collapsible. I've found a solution here: other stackoverflow post This is exactly what I want, but wit a little difference. I want my element to initially be in the collapsed state, and expand it by a button click. Any ideas?
edit:
collapsible.animate(width: "toggle"}, 1000); Looks good ,the only problem is when my element is expanded, it should have display: inline-block instead of display: block what is the default set by .animate(width: "toggle"}