Ok, I am just trying to toggle this DIV .. There are many more that follow this HTML structure. The input-container and input-expand are working, as they toggle appropriately ..
How can I just toggle the internal div.header-image-open and div.header-image-close? I appreciate anyone who can help out!
$(".input-header").click(function() { $(this).next(".header-image-open").toggle(); $(this).next(".header-image-close").toggle(); $(this).next(".input-container").slideToggle(600); $(this).next(".input-container").next(".input-expand").slideToggle(600); });
<div class="input-header">
<div class="header-text"><h2 class="arial">Carat</h2></div>
<div class="header-image-open"><img src="/images/icons/expand-open.gif" /></div>
<div class="header-image-close"><img src="/images/icons/expand-close.gif" /></div>
</div>
<div class="input-container" style="height: 70px;">
Content
</div>
<div class="input-expand">
<p>Click to expand the color filter</p>
</div>