I want to destroy div after few seconds after creating it. At the moment i'm using this
function info ( $s ) {
return ( $s ? '<div class="info">'.$s.'</div><script type="text/javascript">$(".info").delay(3200).fadeOut(300);</script>' : false );
}
The problem is that doesn't work at all. I'm not good in JS at all, so I can't fix it by my own. Thanks for advices and help.