"Simple User Profile "
Bootstrap 3.1.0 Snippet by fcenteno

<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="panel panel-info"> <div class="panel-heading"> <h3 class="panel-title">Nombre</h3> </div> <div class="panel-body"> <table class="table table-user-information"> <tbody> <tr> <td>Department:</td> <td>Programming</td> </tr> <tr> <td>Hire date:</td> <td>06/23/2013</td> </tr> <tr> <td>Date of Birth</td> <td>01/24/1988</td> </tr> <tr> <tr> <td>Gender</td> <td>Male</td> </tr> <tr> <td>Home Address</td> <td>Metro Manila,Philippines</td> </tr> <tr> <td>Email</td> <td><a href="mailto:info@support.com">info@support.com</a></td> </tr> <td>Phone Number</td> <td>123-4567-890(Landline)<br><br>555-4567-890(Mobile) </td> </tr> </tbody> </table> </div> </div> </div>
$(document).ready(function() { var panels = $('.user-infos'); var panelsButton = $('.dropdown-user'); panels.hide(); //Click dropdown panelsButton.click(function() { //get data-for attribute var dataFor = $(this).attr('data-for'); var idFor = $(dataFor); //current button var currentButton = $(this); idFor.slideToggle(400, function() { //Completed slidetoggle if(idFor.is(':visible')) { currentButton.html('<i class="glyphicon glyphicon-chevron-up text-muted"></i>'); } else { currentButton.html('<i class="glyphicon glyphicon-chevron-down text-muted"></i>'); } }) }); $('[data-toggle="tooltip"]').tooltip(); $('button').click(function(e) { e.preventDefault(); alert("This is a demo.\n :-)"); }); });

Related: See More


Questions / Comments: