2
Speaking of my problem, I wanted that when passing a URL with the code below demonstrated, in the middle of the process a parameter was exchanged but specifically the parameter pagina
that must go with value = 1
.
// FILTROS
$('#ordem').on('change', function(){
var url = $(this).val();
if(url != ''){
window.open(url, '_self');
}
});
The URL:
http://.../busca?&area_de=50&area_at=200&ordenacao=mxvalor&pagina=2
Within the jQuery code demonstrated, I would like each time a filter represented by ordenacao
return to page 1 or simply remove the parameter and its value, which will cause my application to automatically return to page 1.
live
is depressed...– brasofilo
Have you tried to save the URL to a variable without the page parameter and only concatenate it when needed? In this case when you would have to redirect to the page without parameter you would use your variable and in the other cases you would use your URL + '?'
– leonardo