Im using jquery form plugin to make a pagination with prev next, page per page and order link, all inside a form, my problem is that im not using submit buttons , im using link with click event, but i need to know what "type" of class the link have or it value (is the same). With this value i add it to the post form request so in the php I parse this and return the correct value.

Thank in advance.

This is the js and the html form part

function pagination() {
   $(".prev_next_form a").click(function() {
       $('.prev_next_form').ajaxSubmit({
               type: 'POST',
               url: 'search.php',
               success: showResponse_buscador,
               dataType: 'html'
       });
       return false;
   });
function showResponse_buscador(responseText, statusText) {
   $('#result').html(responseText);
   pagination();
}



<form class="prev_next_form" action="{S_SEARCH_ACTION}" method="post">
<a class="pag10" href="" title="" value="10">10</a>
<a class="pag20" href="" title="" value="10">20</a>
<a class="pag30" href="" title="" value="10">30</a>
<a class="pag50" href="" title="" value="10">50</a>
<label>news per page</label>
<label>order by</label> <a class="pagRel" value="relevance" href="">Relevance</a> <a class="pagDate" href="" title="" value="date">Date</a>
</form

--

Reply via email to