Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 194079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:33:52+00:00 2026-05-11T16:33:52+00:00

I was wondering, how in jquery am I able to hide a div after

  • 0

I was wondering, how in jquery am I able to hide a div after a few seconds? Like Gmail’s messages for example.

I’ve tried my best but am unable to get it working.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T16:33:53+00:00Added an answer on May 11, 2026 at 4:33 pm

    This will hide the div after 1 second (1000 milliseconds).

    setTimeout(function() {
        $('#mydiv').fadeOut('fast');
    }, 1000); // <-- time in milliseconds
    #mydiv{
        width: 100px;
        height: 100px;
        background: #000;
        color: #fff;
        text-align: center;
    }
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
    <div id="mydiv">myDiv</div>

    If you just want to hide without fading, use hide().

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was wondering how I would be able to hide a post with jquery.
I like jQuery and I was wondering if anyone have used a good plugin
I was wondering how I can realize with jQuery the simple example in the
I'm wondering if the following may be possible using something like jQuery. I've looked
I'm trying to use AJAX via jquery with ASP.NET MVC, but I'm not able
Just wondering how to determine a jQuery statement like this if( $(#test).css('display', 'block') ==
I'm wondering how to show another div when a range of tabs in jQuery
I am wondering how would I do this with like jQuery ajax. Right now
I realize this has been asked a few times, but wondering if you can
Probably best to explain with an example: <div id=tab-1> <input name=1 type=text /> <input

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.