title: Read and Update SharePoint list using jQuery
body: <p>I have SP2010 list with 2 columns.</p>
  
  <ol>
  <li>Title [Text]</li>
  <li>Count [Numeric]</li>
  </ol>
  
  <p>I want to use jQuery to update the value of column "Count" to +1 where "ID" = "Something" (using item ID here).
  Can someone help please me with this? Any code snippet will be appreciated.</p>
  
  <p>I am trying this out but it seems that the "Count" is not increasing</p>
  
  <pre><code>&lt;script src="/SiteAssets/Scripts/jquery-1.3.2.min.js"&gt;&lt;/script&gt;
  &lt;script src="/SiteAssets/Scripts/jquery.SPServices-0.6.2.min.js"&gt;&lt;/script&gt;
  
  &lt;script&gt;
  
  function UpdateCount(itemID)
  {
  
  var query = "&lt;Query&gt;&lt;Where&gt;&lt;Eq&gt;&lt;FieldRef Name='ID'/&gt;&lt;Value Type='Number'&gt;" + itemID + "&lt;/Value&gt;&lt;/Eq&gt;&lt;/Where&gt;&lt;/Query&gt;";
  var count;
  
  $().SPServices({
  operation: "GetListItems",
  async: false,
  listName: "CorpDir_Usage",
  CAMLQuery: query,
  completefunc: function(xData, Status) {
  $(xData.responseXML).find("z\\:row").each(function() {
      count = $(this).attr('ows_Count');
  });
  }
  });
  
  $().SPServices({
  operation: "UpdateListItems",
  async: false,
  batchCmd: "Update",
  listName: "CorpDir_Usage",
  ID: itemID,
  valuepairs: [["Count", count++]],
  completefunc: function(xData, Status) {
  
  }
  });
  
  }&lt;/script&gt;
  
  
  &lt;script type="text/javascript"&gt;
  
      $(document).ready(function(){
          $("#ctl00_m_g_0b30e73d_3ca6_4db1_9760_0e5518e15614_ctl00_btnSimpleSearch").click(function(){
              UpdateCount(1);
          });
      });
  
  &lt;/script&gt;
  </code></pre>