I have the code working for the show and hide the div
. How would I add two different icons as a sprite image for when the show and hide are active?
For example: + icon for show me, then a - icon for hide me.
Here is the code, I have: http://jsfiddle.net/BLkpG/
$(document).ready(function(){
$(".slidingDiv").hide();
$(".show_hide").show();
$('.show_hide').click(function(){
$(".slidingDiv").slideToggle();
});
});
Need to change image to the above when toggled to a + or -.
Thanks
See Question&Answers more detail:os