la solucion
Código Javascript
:
Ver originalfunction agregar() {
var fila = '';
$('input[name^="fk_hora_sorteo"]').filter(':checked').each(function() {
cont++;
fila = '<tr class="selected" id="fila' + cont + '" onclick="seleccionar(this.id)"><td>' + cont + '</td><td>' + $('input[name="fk_animalito"]').val() + '</td><td>' + $(this).val() + '</td><td>' + $('input[name="monto"]').val() + '</td></tr>';
$('#tabla_ventas').append(fila);
reordenar();
})
}