Edit in JSFiddle

$('ul').html(Array(5).join('<li class="whatever">list</li>'));
<ul>
</ul>