I am trying to filter and display data in Django based on the selection made by the user from drop down box. I\'m using ajax call to send a request to Django views. When a u
try to modify your ajax
code to add a data
variable.
$.ajax({
url: "{% url 'charts_data' %}",
method: 'GET',
data : {
filter_category: parseInt(airlineSelected)
}
success: function(data){
console.log(data)
},
error: function(xhr, errmsg, err){
console.log("error")
console.log(error_data)
}
});