开发者

How can I use the Ajax response in another function

开发者 https://www.devze.com 2023-02-21 17:35 出处:网络
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 f

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

精彩评论

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