Append a large li to ul: best way?

Posted by zsharp on Stack Overflow See other posts from Stack Overflow or by zsharp
Published on 2010-04-10T02:51:09Z Indexed on 2010/04/10 2:53 UTC
Read the original article Hit count: 402

Filed under:
|

I have a li that has numerous nested divs. I am appending to a ul as follows:

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

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

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

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript