How can I use the Ajax response in another function
I have a dropdown list with values from the database. I used AJAX to dynamically display the price of the selected item form the database. I want to use the p开发者_StackOverflow中文版rice value for further processing
var dataForFuture;
$.get('ajax/test.html', function(data) {
dataForFuture = data;
// other code...
});
精彩评论