$.when not waiting for ajax return
<p>I have this code</p>

<pre><code>$('#mySelect').change(function() {
  $.get(
    "test.php",
    function(data) { alert('test1'); }
  );
});
</code></pre>

<p>I need to fire the event change of #mySelect, and wait for the answer of the ajax to perform a other task. But when I try</p>

<pre><code>$.when($('#mySelect').change()).done(function() { alert('test2'); });
</code></pre>

<p>It only wait for the change is finish, and the ajax sended, not received.
So I have the alert 'test2' before 'test1'
How can I make $.when wait for everything inside the even to be finish?</p>
