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
Page Views

This page has been viewed 72 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
There is a qualitative and quantitative difference between a day that begins with a little exercise, a book, meditation, a good meal, a thoughtful walk, and the start of a day that begins with a smartphone in bed.
Unknown