why slideDown does not work in this code
$(".btn-more").click(function(){
if ($(this).parent().is(".open") ) {
$(this).parent().prev().slideToggle(100);
$(this).parent().removeClass('open');
$(this).html("read more..");
}
else {
$(this).parent().prev().slideToggle(100);
$(this).parent().addClass('open');
$(this).html("read less..");
}
the Html
<div id="content">
<p>
<span></span>
</p>
<span id="read-more"></span>
<div class="more active" id="preface-more">
<a class="btn-more" id="preface-more-btn" href="#"></a>
</div>
what iam encountering now is the slideup works but slidedown doesn't slide just show, even though iam using slideToggle.. any advice please?
thank you..