CRUD Operations on SharePoint List using JavaScript Object Model(JSOM)
   JavaScript Object Model   Create Item   Add one record into ProductsCategory list using below code.   //Get the Site     var  context = new  SP.ClientContex( "Your Site URL" ); // Get the Web     var  web = context.get_web();  // Get the list based on the Title     var  list = web.get_lists().getByTitle( "ProductCategory" );  //Object for creating Item in the List     var  listCreationInformation = new  SP.ListItemCreationInformation();  var  listItem = list.addItem(listCreationInformation);  listItem.set_item( "Title" , $( "#CategoryId" ).val()); listItem.set_item( "CategoryName" , $( "#CategoryName" ).val()); listItem.update(); //Update the List Item      ctx.load(listItem); //Execute the batch Asynchronously     ctx.executeQueryAsync(  Function .createDelegate( this , success),  Function .createDelegate( this , fail) );      The above code perform the following operations.    To      add a new item in the list, the SP.Li...