Append a large li to ul: best way?
<p>I have a li that has numerous nested divs. I am appending to a ul as follows:</p>

<pre><code>     $("ul#List").append('&lt;li&gt;&lt;div&gt;....many more nested divs...&lt;/li&gt;');
</code></pre>

<p>the structure of the li is the same as the other lis in ul but i have to modify some elements.  </p>

<p>My question is simply am I doing it wrong by manually writing out the entire structure?</p>
