Advertisement
Guest User

Untitled

a guest
May 4th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. function register(){
  2.  
  3. var values = [];
  4.  
  5. values.push(["EmployeeNumber", $("#tbEmployeeID").val()]);
  6. values.push(["EmployeeName", $("#tbEmployeeName").val()]);
  7. values.push(["EmployeeEmail",$("#tbEmployeeEmail").val()]);
  8.  
  9.  
  10. $(function(){
  11. $().SPServices({
  12. operation: "UpdateListItems",
  13. async: false,
  14. listName: "sampleList",
  15. batchCmd: "New",
  16. valuepairs: values,
  17. completefunc: function (xData, Status) {
  18. alert("Completed");
  19. }
  20. });
  21. });
  22. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement