1
Site node have a function to sort higher and lower value. I need to take the current url and change a value that is within it.
Current URL: http://localhost/search.php? type=locacao&ordem=vx&tim%5B%5D=Casa&bar%5B%5D=Brazil&pagina=1
I need to take the value order=vx and change to order=v, and I need to do this within this function below. Because it is she who makes action.
$("#sort-type").change(function() {
var url = window.location.href;
$("#order").val( $(this).val() )
$("#formFilter").submit();
});
How can I do that within that function?
This url is from your page?
– adventistaam