I am trying to get jQuery slideDown() animation to work, but in my case, text appears that should slide down. How do I make it display with animation in place?
I also tried to manually specify the speed, but the end result was the same.
HTML:
<section class="subscribe"> <button id="submitBtn" type="submit">Subscribe</button> <p></p> </section>
JavaScript:
$(function () { $("#submitBtn").click(function (event) { $(".subscribe p").html("Thanks for your interest!").slideDown({ duration: 4000 }); }); });
JSFiddle: http://jsfiddle.net/ahmadka/A2mmP/
source share