I have a CheckBoxList in which there is a Lookup values. Now I need the selected values and update it to the Lookup column in the list using SPServices. I tried the below code:
var selectedValues = [];
$("[id*=chbxPAD] input:checked").each(function () {
selectedValues.push($(this).next().html());
});
$().SPServices({
operation: "UpdateListItems",
listName: "Requirements",
ID: id,
valuepairs: [
["Request_x0020_Type", selectedValues]
],
completefunc: function (xData, Status) {
alert("Updated.");
}
});
alert(selectedValues);
what values are coming up?