"TEST: Understanding jQuery with Bootstrap"
Bootstrap 4.0.0 Snippet by mrmccormack

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.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> <h3>Understanding jQuery in Bootstrap</h3> http://fiddle.jshell.net/mrmccormack/qCq8D/ maybe just do jsfiddle... http://fiddle.jshell.net/mrmccormack/hYAXq/ as not to confuse bootstrap <hr> <button>Click me to hide paragraphs</button> </div> <div class="row"> <div class="col-sm"> <h1>Heading A</h1> </div> <div class="col-sm"> <h1>Heading B</h1> </div> <div class="col-sm"> <h1>Heading C</h1> </div> </div> </div>
h1{ color: red; }
$(document).ready(function(){ $("button").click(function(){ $("h1").hide(); }); });

Related: See More


Questions / Comments: