Hello,
I need help with sliding down an element.
When it is sliding down I want the parent's div height to change so it will contain the sliding element.
My html:
<div class="sliderBox">
<ul>
<li>
<div class="main">
<div class="publicationTitleOuter">
<div class="publicationTitleInner">Kouga/Uitenhage</div>
</div>
<p class="issueDate">8 MAY 2013</p>
<div style="margin-top:10px"></div>
<div style="width: 121px; margin: 0 auto">
<a href="http://www.thinklocal.co.za/magazines/thinklocal/kouga/2013-05-08-225" target="_blank">
<img src="http://tl/assets/img/thinklocal/kouga/tl-kouga-2013-05-08-cover.jpg" alt="Think Local issue: 8 MAY 2013" width="121" height="163" class="issue" />
</a>
</div>
<div style="margin-bottom: 10px"></div>
<a class="moreBtn" href="#">CLICK FOR MENU</a>
</div><!-- end main -->
<div class="more">
<h2 class="title">Kouga/Uitenhage</h2>
<div class="issuemain" style="vertical-align: middle; line-height: 216px; float: left; width: 180px">
<a href="http://thinklocal.co.za/magazines/thinklocal/kouga/2013-05-08-225" target="_blank">
<img src="http://tl/assets/img/thinklocal/kouga/tl-kouga-2013-05-08-cover.jpg" alt="Think Local issue: 2013-05-08" width="160" height="216" />
</a>
</div>
<div class="closer"></div>
</div><!-- end more -->
</li>
My jquery:
$('.moreBtn').on('click', function()
{
$(this).parent().next().slideDown();
return false;
});
The div with the class "more" has a display: none style.
So when I click the CLICK FOR MENU button, the div with the class "more" should slide down, and the div with the class "sliderBox" should grow accordingly.
How do I do that?
Thank you