The realization of automatically disappearing after the jquery hint information display

Source: Internet
Author: User

Let the message display automatically disappear after a lot of methods, in this article for you to use jquery is how to do, interested friends can refer to the next

Often need to do to let a message display a few seconds and then automatically disappear the effect, before the settimeout to achieve, but found that if there are multiple settimeout on the page is not very good.  Two very simple methods were found today. Mark, please. Method One: The code is as follows: $ ("#errormsg"). HTML ("Your information is entered incorrectly, please try again!").    Show (delay). (3000). Hide (300); Method Two: The code is as follows: $ ("#errormsg"). html ("OK"). Hide (3000);//This is gradually disappearing $ ("#errormsg"). html ("OK"). Fadeto (3000). Hide (); This is to show him 5 seconds (in fact, no change in transparency), and then hide
Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.