var myItems = []; var myList = $( "#myList" ); for ( var i = 0; i < 100; i++ ) { myItems.push( "<li>item " + i + "</li>" ); } myList.append( myItems.join( "" ) );
var myItems = []; var myList = $( "#myList" ); for ( var i = 0; i < 100; i++ ) { myItems.push( "<li>item " + i + "</li>" ); } myList.append( myItems.join( "" ) );