调用Ajax后刷新页面

I have two pages, on the first page you can select an item with a <select> </select>. When you select an item, a form is automatically displayed through an AJAX Call. In this form, data is automatically loaded from a mysql db in a <textarea> </textarea>. The moment you submit your form, I want the new data to be added to the <textarea> </textarea> I just can't manage this, who can help me?

$(document).ready(function () {
        $("#btnAdd").click(function (e) {
            /* Retrieving value from textboxes */
        var besproken = $('#besproken').val();  
            $.post("save.php", { 
              besproken: besproken, 
          }, function (data) {
          $("#autoSave").html("Coaching ");
          $("#btnAdd").attr("disabled", true);
          });
            return false;
        });
    });
查看全部
weixin_33695450
weixin_33695450
2019/03/13 19:38
  • php
  • ajax
  • javascript
  • 点赞
  • 收藏
  • 回答
    私信

2个回复