I have created a post request in jquery. It sends an XHR request and it gets completed successfully. However, I also want to redirect it to a different page when that request is triggered.
this is my code:
$(".checkout-button").click(function(){
$.post("{% url 'book:booking' %}", seat_total, function(response){});
});
this is my button to which this is linked
<button class="checkout-button">Checkout »</button>
How can I redirect it to this url -- {% url 'book:booking' %}