jQuery post response not set until second use
<p>I'm super new to jQuery and would love some help with an issue I'm having. It should be pretty simple. Basically, the first alert is empty, but when I call the variable the second time it gives the expected results.</p>

<pre><code>$.post("showcolor.php", { color: "orange"},
  function(data) {
  colorInfo = data;
});
alert(colorInfo); //empty
alert(colorInfo); //expected results
</code></pre>

<p>Can someone explain this phenomena to me?</p>
