How to make one button for open and close div, in this jquery code?
- by metal-gear-solid
$(document).ready(function(){
$('#content1').hide();
$('a#open').click(function(){
$('#content1').show('slow');
});
$('a#close').click(function(){
$('#content1').hide('slow');
})
});
in this code of toogle open and close button is different
<a> and <a id="close">
I want to make same button <a> for open and close and want to give different background image for open and close position