无法使用jQuery将项目保存在Sharepoint列表中 [英] Unable to save the items in the Sharepoint list using jquery

查看:75
本文介绍了无法使用jQuery将项目保存在Sharepoint列表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我是第一次使用jquery.我需要将项目保存到列表中.下面是代码,任何人都可以帮助我找出代码中的错误吗.

Hi to all,
I am using jquery for the first time.I need to save the items into list.Below is the code ,Can any one help me in finding what is wrong in the code .

<script type="text/javascript" >

     $(document).ready(function()
    {
      $("#ctl00$m$g_0ce04f85_be39_48aa_a92e_d0f45efbf84f").click(function()
         {
           $().SPservices

           ({

                  operation:"UpdateListitems",

                  ListName:"Question",async=false,

                  batchCmd:"New",

                  "<field name="YouSelection">"+ "1" +"</field>"

                      completefunc:function(xData,Status)

                      {

                      alert(xData.responseXML.xml);

                      }
           });
 
      });

 });




谢谢,
MOHAMMAD SIDDIQALI.




Thanks,
MOHAMMAD SIDDIQALI.

推荐答案

(文档).ready(功能() {
(document).ready(function() {


("
("#ctl00


m


这篇关于无法使用jQuery将项目保存在Sharepoint列表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆