ajax实现修改数据库
我的展示列表是这样的,修改怎么弄求大神指教
function loadlist() {
$.post("/pages/ComYWLIST.aspx?r=" + Math.random(), {}, function (rsp) {
var json = eval('(' + rsp + ')');
var table = $("<table class='result-tab' width='100%'><tr><th>业务序号</th>><th>业务数量</th><th>业务类型</th><th>修改</th></tr></table>")
$(json).each(function () {
var t = this;
var tr = "<tr><td width='20%'><input type='checkbox' id='ch' name='check' value='" + t.SC_YW_ID + "' /> " + t.SC_YW_ID + " </td><td>" + t.SC_YW_COUNT + "</td><td>" + t.SC_YW_NAME + "</td><td><input type='button' class='link-update' text='编辑' id='xg' value='" + t.SC_YW_ID + "' /> </td></tr>";
table.append(tr);
})
$("#table1").html(table);
})
}