fading out php echo messages
<p>I want to fade out php echo message. Here is my php code:  </p>

<pre><code>&lt;?php 
    $name = $_POST['name'];
    $email = $_POST['email'];
    $message = $_POST['message'];
    $subject = $_POST['subject'];

    $to = 'ajay.k@enexl.com';
    if (filter_var($email, FILTER_VALIDATE_EMAIL)) { // this line checks that we have a valid email address
        $mailSubject = "Contact request from " .$name;
        $txt = "name : ".$name.".\n\nSubject : ".$subject.".\n\nMail id : ".$email."\n\nMessage : ".$message;
        $headers = "From: ".$email ;
        mail($to,$mailSubject,$txt,$headers);
        $data = array();
        $data['status'] = 'success';
        //echo json_encode($data);  
        echo "&lt;script src='http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js'&gt;&lt;/script&gt;";
        echo "&lt;p id='#text'&gt;Your email was sent! One of our team members would contact you shortly!&lt;/p&gt;"; // success message
        echo "&lt;script type='text/javascript'&gt;";
        echo "$(function(){";
        echo "$('#text').fadeOut(5000);";  
        echo "});";
        echo "&lt;/script&gt;";
    }
    else{
        echo "Mail was not sent, make sure that all fields are filled in";
    }

?&gt;  
</code></pre>

<p>When the form data gets submitted, successfully, I get the response as <code>Your email was sent! One of our team members would contact you shortly!</code>. However it doesn't fade out as expected. How can I make it fade out? </p>