jquery, how to use trigger?
<p>i have this situation:</p>

<pre><code>if(isset($_POST["sm"]){
print "&lt;br&gt;&lt;div id=\"redirect\"&gt;success&lt;/div&gt;";
}
</code></pre>

<p>in javascript i have:</p>

<pre><code>$('#redirect').delay(2000).fadeOut('slow');
</code></pre>

<p>what happens is that if the form is submitted that div shows up for two seconds then faced out, but i also want to trigger a click by using: <code>$('#test').trigger('click');</code></p>

<p>how can i connect them together so that when the div shows i also trigger the click.</p>

<p>also i cant use javascript inside the php if statement</p>

<p>any ideas?</p>

<p>thanks</p>
