"Toogle Hide with Class Change"
Bootstrap 3.2.0 Snippet by creativealex

<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.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="container"> <div class="row"> <button type="button" class="btn btn-info btn-sm" title="Click me"><span id="glyph" class="glyphicon glyphicon-minus"></span></button> <div class="slide-banner"> dffgfggf </div> </div> </div>
button{position:fixed; left:0; border-radius:100% !important;}
$(function(){ var ele = $('.slide-banner'); var plus = $('#glyph'); var btn =$('button') $( "button" ).click(function() { plus.toggleClass("glyphicon-minus glyphicon-plus") btn.toggleClass("btn-danger btn-info") ele.toggle('slow'); }); });

Related: See More


Questions / Comments: