首页 > 解决方案 > 在php中经过一段时间后我无法隐藏警报,然后我无法在php中添加onclick函数

问题描述

邮件已发送给管理员。管理员已收到用户的邮件并弹出消息,如消息已完全发送成功,但一段时间后消息并未消失

try(){
   
    $mail->send();

    $alert ='<div class="alert-success hide">

             <span>Message Sent! Thank you for Contacting us.</span>
     
     </div>';

 }catch(Exception $e){

      $alert ='<div class="alert-error hide">

               <span>Something went wrong</span>
               \\ write a code to hide the span after 3 sec 
       </div>';
 }

如何获取自动隐藏弹出消息的代码?

标签: phphtmljquery

解决方案


推荐阅读