Currently i have this code
setTimeout(function() { $('#hideMsg').fadeOut('fast'); }, 2000);
is it possible for me to put countdown timer for 2 seconds?
Like
<div id="hideMsg">
The entry you posted not valid.
This Box will Close In 2 Seconds
</div>
"This Box will Close In 2 Seconds" will automatically change to 2sec 1sec