My panel-collapse not minimizing
<p>When I click the View Map link the collapse show but when I click it again
it the div does not hide. I don't know what to do. I searched but its not working. </p>

<pre><code>&lt;a href="#collapse2" data-toggle="collapse"&gt;View Map&lt;/a&gt;

&lt;div id="collapse2" class="panel-collapse collapse"&gt;
    &lt;?php
        $map_url = $loc;
        $map_url = str_replace(" ", "+", $map_url);
    ?&gt;
    &lt;iframe width="350" height="250" allowfullscreen frameborder="0"  src="http://maps.google.nl/maps?q=&lt;?=$map_url?&gt;&amp;hl=nl&amp;ie=UTF8&amp;t=v&amp;hnear=&lt;?=$map_url?&gt;&amp;z=13&amp;amp;output=embed"&gt;&lt;/iframe&gt;
&lt;/div&gt;
</code></pre>