Add New Item in Sharepoint List List

时间:2016-04-25 08:52:28

标签: jquery html sharepoint

Can anyone help my in a simple way to add a new item in a list.

I can pull date from the list and show it on a page, I need to know how to create a new item. the target here is when the page load a new entry will be uploaded to the list.

please help.

 -- External jquery
$(document).ready(function(){

    $().SPServices({
                operation: "UpdateListItems",
                async: false,
                listName: "SampleList",
                ID: 3,
                valuepairs: [["ID", id],["Title", title]],
                completefunc: function (xData, Status) {
                    alert("Completed");
                }
            });
});
-- SP library
  	<script src="../javascript/jquery-1.12.0.min.js"></script>
	<script src="../javascript/jquery-migrate-1.2.1.min.js"></script>
	<script src="../javascript/jquery.SPServices-2014.01.min.js"></script>

0 个答案:

没有答案