Objects I add with jQuery are not displaying?
<p>I am new to jQuery, and I am trying to add new elements to an existing div</p>

<p>My jQuery:</p>

<pre><code>function GetXML1Response(results) {
        $(results).filter("Child").each(function () {
            var newDiv = $("&lt;div&gt;").text("Value: " + $(this).attr("value"));
            $("#contentDiv").append(newDiv);
        });
    }
</code></pre>

<p>My HTML:</p>

<pre><code>&lt;div id="contentDiv"&gt;
        &lt;div&gt;TEST 1&lt;/div&gt;
    &lt;/div&gt;
</code></pre>

<p>If I look at it in the debugger, it adds the new divs as expected, but they do not appear, and on the next call, they have disappeared.</p>

<p>Any help is appreciated.</p>

<p>EDIT:</p>

<p>I think I may know where the problem is coming from.  This function is triggered as the callback to a WebMethod.  I suspect that it may be happening on a different thread, and thus the changes made are being lost?</p>
