开发者

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...
 });
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜