In this article I would like to explain how to programmatically add list item in SharePoint List using JavaScript.
Look at the following procedure.Step 1Create a Web Part using Visual Studio 2013.Step 2Open the ascx (MyFirstWebPartUserControl.ascx) and design your UI. Here I have created Employee details information.The following is the design part of the code:
The following is the JavaScript Code:
Step 3Build and deploy your the solution.Step 4Go to your SharePoint site and create one page under site pages. Add your web part to that page.Step 5Enter the Employee details and click the Save button.Step 6Go to your List and the item will display.SummaryThis article showed how programmatically add a list item to a SharePoint List using JavaScript.
SharePoint Online And Office 365 Administration