Returning Value Of A $.POST With JQuery
<p><strong>JS</strong>:</p>

<pre><code>function ajax_post_var(url, event_id)
{
var info = $.post(url).responseText;
alert(info);
if (event_id == '1')
{
 do something with info...
}
...more if's here...
}

ajax_post_var('http://www.website.com/a.php', 1);
</code></pre>

<p>a.php displayed the text <code>TEST;</code></p>

<p>Why does info show undefined...
I'd like to be able to use the returned value for something else.</p>
