Jquery .get() doesn't do anything
I have the following JQuery script where when a user selects a new option
in a select box, it should send a Http GET request with the new value from
the select box. I have the following script:
<script type="text/javascript">
$(document).ready(function() {
$('#radius').change(function() {
var radius = $('#radius').find(":selected").text();
var data = {"radius":radius, "address":"{{ address }}"};
$.get("{% url 'search:results' %}", data);
});
} );
</script>
But it doesn't redirect me to the page with the new parameters.
No comments:
Post a Comment