I have a modal list and it only shows me the top 10 well, when I go to the next window it shows me anything of the last thing I touch but it does not show the real value that it can be. my list has 25 elements
vista lista.php
<div class="btn-group">
<button type="button" class="btn btn-info btn-view-asistencias" data-toggle="modal" data-target="#modal-default" value="<?php echo $modulod->id;?>">
<span class="fa fa-search"></span>
</button>
</div>
Vista footer.php
$(".btn-view-asistencias").on("click", function(){
var id = $(this).val();
$.ajax({
url: base_url + "registro/asistencias/view",
type:"POST",
data:{idasistencias:id},
success:function(resp){
$("#modal-default .modal-body").html(resp);
}
});
});
which can be the error