function createitem() { var selectListBox = document.getElementById("txtFormName"); var selectedListTitle = selectListBox.value; var selectedList = web.get_lists().getByTitle(selectedListTitle); var listItemCreationInfo = new SP.ListItemCreationInformation(); var newItem = selectedList.addItem(listItemCreationInfo); newItem.set_item('Title','abc'); newItem.update(); context.load(newItem); context.executeQueryAsync(onItemCreationSuccess, onItemCreationFail); }
newItem.set_item('Title','abc')
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)