"TEST: jQuery chaining"
Bootstrap 3.0.0 Snippet by FatJumbis

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.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 class="row"> <h2> jQuery chaining</h2> <br> <br> <p id="p1"> chaining can make multiple commands happen at once, all with the push of a button! </p> <br> <button type="button" id="btn" class="btn btn-primary">Up</button> </div> </div>
$(document).ready(function(){ $("button").click(function(){ $("#p1").css("color", "green").slideUp(3000).slideDown(3000); $("#btn").html('Weee'); }); });

Related: See More


Questions / Comments: