Thursday, October 29, 2015

how to update Choice column in SharePoint list using SPServices?

$().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>

No comments:

Post a Comment