Append a large li to ul: best way?
- by zsharp
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…