Skip to content

Instantly share code, notes, and snippets.

@nedSaf
Last active August 29, 2015 14:26
Show Gist options
  • Save nedSaf/24b339dd4d8119bf7afe to your computer and use it in GitHub Desktop.
Save nedSaf/24b339dd4d8119bf7afe to your computer and use it in GitHub Desktop.
Bootstrap tabs working.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Case</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script type="text/javascript" src="assets/twitterbootstrap/js/bootstrap-tab.js"></script>
</head>
<body>
<div class="container">
<h3>Tabs</h3>
<ul class="nav nav-tabs">
<li class="active"><a href="#orange" data-toggle="tab">Menu 1</a></li>
<li><a href="#red" data-toggle="tab">Menu 2</a></li>
</ul>
<div id="my-tab-content" class="row tab-content">
<div class="col-md-3 tab-pane active" id="orange">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</div>
<div class="col-md-3 tab-pane" id="red">
<p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
</div>
</div>
</div>
</body>
<script type="text/javascript">
jQuery(document).ready(function ($) {
$('#tabs').tab();
});
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment