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. 


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

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

I am some hidden / collapsed data

Other Items in css
Page Views

This page has been viewed 228 times.

Search Code
Search Code by entering your search text above.

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
Even if you fall on your face, you're still moving forward.
Victor Kiam