Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
143
rated 0 times [  148] [ 5]  / answers: 1 / hits: 16484  / 14 Years ago, wed, january 19, 2011, 12:00:00

I have a div, which is generally used for showing some status messsage like you have selected some xyz thing



Now, I need to hide it at interval of specific amount of time (say, 60 secs) after page loads.



Code:



 <div id=msg>You have selected 'Time and Money' magazine</div>


How can I perform the above mentioned thing?



Thanks


More From » jquery

 Answers
17
$(document).ready(function () {
setTimeout(function () {
$('#msg').hide();
}, 60000);
});

[#94152] Tuesday, January 18, 2011, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
terrellhunterm

Total Points: 82
Total Questions: 109
Total Answers: 98

Location: Vietnam
Member since Sun, Oct 18, 2020
4 Years ago
terrellhunterm questions
Mon, Aug 31, 20, 00:00, 4 Years ago
Mon, Aug 5, 19, 00:00, 5 Years ago
Thu, Apr 4, 19, 00:00, 5 Years ago
Mon, Mar 11, 19, 00:00, 5 Years ago
;