$(document).ready(function(){
$('#content1').hide();
$('a#openClose').click(function(){
if ($('#content1').is(':visible')) {
$('#content1').hide('slow');
$(this).css('background-image', 'url(close_image.jpg)');
} else {
$('#content1').show('slow');
$(this).css('background-image', 'url(open_image.jpg)');
}
});
});
in this code of toggle open and close button is different
<a id="openClose">
I want to make the same button <a id="openClose">
for open and close actions and want to give a different background image for the open and close positions