$().SPServices({
operation: "UpdateListItems",
listName: "businesscard",
async: false,
ID:selectid,
batchCmd: "Update",
valuepairs: [["dStatus", "Ordered"]],
completefunc: function (xData, status) {
$(xData.responseXML).SPFilterNode("z:row").each(function() {
alert("sucess");
});
}
});
<select id='ddlstatus'><option>Approved</option><option>Completed</option></select>
operation: "UpdateListItems",
listName: "businesscard",
async: false,
ID:selectid,
batchCmd: "Update",
valuepairs: [["dStatus", "Ordered"]],
completefunc: function (xData, status) {
$(xData.responseXML).SPFilterNode("z:row").each(function() {
alert("sucess");
});
}
});
<select id='ddlstatus'><option>Approved</option><option>Completed</option></select>
No comments:
Post a Comment