How to store an received data in an variable jquery
<p>How to store the received the data from an remote php file in an variable using jquery.
I receive the data using </p>

<pre><code> $.post("test.php", {query: ""+inputString+""}, function(data){
                alert(data);
            });
        }
</code></pre>

<p>It works i can receive the data inside the function(data) but can i sore the data in an variable and use it in another function some thing like </p>

<pre><code> var data =  $.post("test.php", {query: ""+inputString+""});
</code></pre>
