This is probably a very simple question, and I may be going about the problem entirely the wrong way. Corrections and ideas are very welcome. Basically, the below code functions to hide and show divs very nicely, but it only changes the image source on hide, not show. $('#toggle_year').click(function(){$('#container_year:visible').hide('slow');$('#toggle_year').src('assets/images/expand.gif')}); $('#toggle_year').click(function(){$('#container_year:hidden').show('slow');$('#toggle_year').src('assets/images/retract.gif')}); See http://clients.geekgrl.net/test/ for a live-ish example (missing the database backend so the autocomplete will bomb, don't try it) Thanks all! |
_______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/