使用jquery的AJAX POST REQUEST

时间:2016-06-14 09:08:50

标签: php mysql ajax codeigniter

任何人都可以帮助我为这种情况创建一个ajax请求吗?如果我点击确定ID,我想要。我只是想更新它的内容并存储在数据库中。希望有人在这帮助我。谢谢。

查看文件:

Math.Max(p, q)

1 个答案:

答案 0 :(得分:0)

你可以通过这个

来做到这一点
$.ajax({
            url: "data.php",//file wich has query select to db table
            data: {id:theid},//describe your data here
            dataType: 'json',// type of data that will you get (JSON/HTML).
            type: 'POST',//sending type (POST/GET)
            success: function(data) {
               //do change the select option
            }
        });

古德勒克!

相关问题