Thanks for the suggestion.  I was avoiding this option because it assumes the layer is visible in the first place, or, rather, it requires you to hard code the toggle order to match the initial hidden/visible schema.

 This is part of a much larger CMS and I can't count on the div starting off as visible every time.  See "car name" now for an example of what happens if the layer is hidden via CSS -- the first click of the show/hide icon produces no result.


On Oct 10, 2006, at 2:28 AM, Mika Tuupola wrote:

     $("#toggle_name").toggle(function(e) {

         $('#container_name:visible').hide('slow');

         $('#toggle_name').src('assets/images/expand.gif')

     }, function(e) {

         $('#container_name:hidden').show('slow');

         $('#toggle_name').src('assets/images/retract.gif');

     });


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to