So currently I’m editing a dynamic h2 on my site through jQuery. But I want it to fadeIn() and then display the message. This is my current code:
$("#score h2").html("You are not correct! Try again.");
The code simply edits my h2. But I wish my h2 to fadeIn() and then have the message displayed.
You need to hide it first to fade it in