Error with pagination in Ajax (Jquery + PHP + MySQL) -
i'm doing ajax search , many results, decided make pagination (i'm working in localhost right now).
i write fields want/need/know find athlete (i fields jquery , send php page).
after press search button , 10 results , pagination below results layout (all in div).
the error comes when press page number button, because fields empty, , results div empty well.
this jquery code:
$('#btnbuscatriatleta').click(function () { $.get('wmatri/checkatleta.php', { nombreatleta: $('#nombreatleta').val(), apellidosatleta: $('#apellidosatleta').val(), clubatleta: $("select#clubatleta option:selected").val(), pagina: $("div#resultadobusquedatriatleta > nav.text-center > ul.pagination > li.active > a").attr('id') }, function (data) { $("#resultadobusquedatriatleta").html(data); }, ''); });
do know how fix it?
thanks beforehand.
Comments
Post a Comment