JQuery .get function vars
<p>Once again having problems being a new to javascript. I want to get the reply from my PHP script using JQuery's get. Here's my function</p>

<pre><code>function getNext(){
    var returnData = null;
    $.get("get.php", {task:'next'}, function(responseText){
        returnData = responseText; }, "text");  
    return returnData;      
}
</code></pre>

<p>Now obviously the function returns null even though the request was successful. Why?
Thanks for your help in advance.</p>
