Looping Array properties and break
<p>I have some problems with looping and breaking.
I have an array n when i reach 10th element i have to do smth. For example:</p>

<pre><code> $.each(videoDataList,function(k){      
        html = ''
        if(k % 10 == 0){
           html += (k == 0 ? "&lt;ul&gt;" : "&lt;/ul&gt;&lt;ul&gt;");
        }
        html += '&lt;li class="item"&gt;'
        html += '&lt;a href="#" id="vl_'+(k+1)+'"&gt;'
        html += '&lt;span class="score_journalist" id="num_'+videoDataList[k].score_journalist+'"&gt;'+videoDataList[k].score_journalist+'&lt;/span&gt;'
        html += '&lt;img src="/files/preview/s/'+videoDataList[k].video_id+'.jpg" alt="" /&gt;'
        html += '&lt;span class="rating clearfloat"&gt;'
        html += '&lt;span class="votes"&gt;&lt;span class="title"&gt;рейтинг:&lt;/span&gt; &lt;span class="count"&gt;'+videoDataList[k].score_user+'&lt;/span&gt;&lt;/span&gt;'
        html += '&lt;/span&gt;'
        html += '&lt;span class="filter"&gt;&lt;/span&gt;'
        html += '&lt;/a&gt;'
        html += '&lt;img src="/files/preview/b/'+videoDataList[k].video_id+'.jpg" alt="" class="big"/&gt;'
        html += '&lt;/li&gt;'
        if(k == videoDataList.length){
          html += "&lt;/ul&gt;";
        }
        $(html).appendTo('#videoLists ul.list')
    })
</code></pre>

<p>i want to have 10 elements LI and put them into UL. then i want to loop my array from 11th element till 21th element and again LI from 11 to 21 i want to put in another UL.
Is it possible?</p>
