jQuery can't affect "outside" divs
<p>So, I want to do this simple thing:                                     </p>

<pre><code>$('#addform').html(donedata);
</code></pre>

<p>The div #addform is <code>&lt;div&gt;</code> and donedata is a variable. But it won't work and I kinda think I know why. In this case I want to affect a div that I'm actually in. So, after clicking a submitbutton, I want to change the contents of addform and replace them with the variable donedata.</p>

<p>For better understanding:</p>

<pre><code>&lt;div id="addform"&gt;
&lt;div id="form"&gt;
&lt;input type="text" value="blabla" /&gt;
&lt;input type="submit id="submit" value="submit" /&gt;
&lt;/div&gt;
&lt;div id="result" style="visibility:hidden"&gt;
&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>If I would change the first line of code (in the beginning of this post), so it wouldn't try to change #addform, but the content of #result (first it would make it visible via css-method) it works fine.</p>

<p>So, is the problem simply, that I can't change anything of a div that "I'm in" or is there something else I could do?</p>

<p>I'm not sure if what I wrote is actually understandable.</p>
