Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Add New Item in Sharepoint List List

$
0
0

Hi Guys,

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

-- 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>

 -- External jquery

var id = 3;
var title = "besmonte"

$(document).ready(function(){

    $().SPServices({
                operation: "UpdateListItems",
                async: false,
                listName: "SampleList",
                ID: 3,
                valuepairs: [["ID", id],["Title", title]],
                completefunc: function (xData, Status) {
                    alert("Completed");
                }
            });
});

... 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.




Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>