JQuery Toggle image AND another div height -


Not sure it can be done, but I would like to toggle an image (simple), but at the same time Increase / reduce the height of any other divide based on the "open / close" of the toggle I can get it to grow on click, but please do not "stop" on any suggestion

  $ j ('# headerImageToggle'). Live ('click', function () {$ j (.) .next ('div') Slide toggle ('slow', function) (I believe something goes here?));});  

  $ j ('# headerIgageToggle'). Live ('click', (function) () {var nextDiv = $ j (this) .next ('div'); nextDiv.slideToggle ('slow', function () (if (nextDiv.is (': visible' )) {// lower altitude} and {// increase height}});});  

Comments