Click here to Skip to main content
15,901,426 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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 .
JavaScript
<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);

                      }
           });
 
      });

 });



Thanks,
MOHAMMAD SIDDIQALI.
Posted
Updated 13-Oct-11 0:32am
v2

As I told you before JQuery has nothing to do with SharePoint. You should be using the Client Object Model in SharePoint 2010 not web services
 
Share this answer
 
Hi Mark,
Thanks for being there.Can you tell me how to insert items.Hope you reply
 
Share this answer
 
Comments
[no name] 13-Oct-11 14:08pm    
This should have been posted as a reply, not a solution.

This should answer all of your questions
http://www.codeproject.com/KB/sharepoint/CSOM_Part1.aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900