Twitter bootstrap collapse: change display of toggle button
try this. http://jsfiddle.net/fVpkm/ Html:- <div class=”row-fluid summary”> <div class=”span11″> <h2>MyHeading</h2> </div> <div class=”span1″> <button class=”btn btn-success” data-toggle=”collapse” data-target=”#intro”>+</button> </div> </div> <div class=”row-fluid summary”> <div id=”intro” class=”collapse”> Here comes the text… </div> </div> JS:- $(‘button’).click(function(){ //you can give id or class name here for $(‘button’) $(this).text(function(i,old){ return old==’+’ ? ‘-‘ : ‘+’; }); }); Update With … Read more