Checkbox .change() event not firing inside of jQuery .when()
<p>I have two ajax functions that fetch JSON objects using .getJSON and then build a table and drop-down menu using the contents of those objects.  This much is working fine.  Now I'm attempting to attach an event to each of the checkboxes located in the first column of the table.  Naturally I want this to happen after the ajax calls are done.  JQuery's .when() function seems like a good solution in that it will wait until both ajax functions are complete.  Below is my code.  I'm not sure what I did wrong.  For some reason the alert inside of the .when function does not fire.  Can someone point out what I've done wrong?</p>

<pre><code>$(document).ready(function () {

$.when(createSpotsTable(), createMarketDropDown(1))
$('input:checkbox').click(function () {
    $('input:checkbox').change(
       alert("Hello world!")
    );
});

});
</code></pre>
