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

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.

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