重新加载引导表时搜索不起作用

时间:2017-03-01 10:25:44

标签: jquery ajax twitter-bootstrap

我正在使用bootstrap表来显示我的数据,我创建了一个编辑按钮,使用ajax更新行的详细信息。现在我想更新表的内容而不重新加载整页。我尝试使用它:

$.ajax({
  type: "POST",
  url: "ajax/show-data.php",
  data: "gid="+ allVals + "&msg="+ tex,
  success: function(result) {
    $("#gname").load(window.location + '#gname'); //gname id of the table
  },
});

问题在于,当我使用上面的代码时,代码无法正常工作。请帮助我。

0 个答案:

没有答案
相关问题