$.ajax({ // initialize an AJAX request
url: url, // set the url of the request (= localhost:8000/path/)
data: {
'company_id': company_id // add the programming id to the GET parameters
},
success: function (data) { // `data` is the return of the `path` view function
$("#company").html(data); // replace the contents of the course input with the data that came from the server
$.ajax({ // initialize an AJAX request
url: url, // set the url of the request (= localhost:8000/path/)
data: {
'company_id': company_id // add the programming id to the GET parameters
},
success: function (data) { // `data` is the return of the `path` view function
$("#company2").html(data); // replace the contents of the course input with the data that came from the server
}
});
}
});