"Learning jQuery"
Bootstrap 3.3.0 Snippet by kaikikibeta

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <h2>Learning jQuery.</h2> <h1>This is a heading</h1> <p>This is a paragraph.</p> <p>This is another paragraph.</p> <button type="button" class="btn btn-info">Show Less</button> </div> </div>
h2{ color: blue; }
$(document).ready(function(){ $("button").click(function(){ $("h2").toggle(); }); });

Related: See More


Questions / Comments: