bootstrap collapse or toggle a div visibility

if you have bootstrap and want to toggle an element or show and hide a div its already built in, just use the following code to toggle something. 

HTML

<p>
	<button class="btn btn-primary" data-toggle="collapse" href="#morefields" >Show or Hide the additional data</button>
</p>

<div id='morefields' class="collapse" >
	<div class='alert alert-primary'>I am some hidden / collapsed data</div>
</div>

I am some hidden / collapsed data

Other Items in css

No Items Found.

Add Comment
Type in a Nick Name here
 
Page Views

This page has been viewed 547 times.

Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.

โค๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ•น

Random Quote
Interesting...

Me