Я бы предложил, чтобы вместо попытки обернуть каждый элемент, вы динамически создаете таблицу и заменяете оригинальный div.Примерно так:
var $table = $('<table class="coios"></table>'); // create a new table
var $tr = null;
$('.one').each(function(i,e){ // loop each ".one" element (i is the index, e is the element)
if((i%5) == 0){ // create a new tr on iteration 1, 6, 11 etc
$tr = $('<tr class="cinci"></tr>');
}
var $td = $('<td></td>'); // create a new td
$td.append(e); // append the current ".one" element to the td
$tr.append($td); // append the td to the current tr
if((i%5) == 0){ // make sure if we've created a new tr to append it to the table
$table.append($tr);
}
});
$("#pagination").replaceWith($table); // replace the "#pagination" element with our new table
Живой пример: http://jsfiddle.net/rwdUM/2/