Dumb question, but I canβt figure it out.
I have a div and hide it when the page loads like this
$("e").hide();
then when the user takes a specific action, I want the div to animate or smoothly move down. But on my site, the animation just flashes and hides a hidden div, and no fade or slideDown occur.
I use
$("#e").hide(); $("#p").change(function() { if ($("#p").val() === 'Married') { $("#e").slideDown(500); } else { $("#e").slideUp(500); } });
source share