You can change the text value of the anchor element as follows.
$(".btn-slide").click(function(){
$("#panel").slideToggle("slow");
$(this).toggleClass("active"); return false;
$(this).text('YourText ' + ($(this).hasClass('active') ? '↑' : '↓'));
});
Removing the arrow image is done by eliminating the CSS background
property of the .btn-slide
selector.
MasterAM
2010-04-23 07:52:36