I’m using .show to display a hidden message after a successful form submit.
How to display the message for 5 seconds then hide?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
.delay()before an animation, like this:If it’s not an animation, use
setTimeout()directly, like this:You do the second because
.hide()wouldn’t normally be on the animation (fx) queue without a duration, it’s just an instant effect.Or, another option is to use
.delay()and.queue()yourself, like this: