How to add items to sharepoint list from a html document?

1.5k views Asked by At

I am trying to create a comments section in a sharepoint site. Is there anyway I can use javascript to read some text from a 'div' or a 'p' element and then add that item into a list when the user press submits?

Some examples of codes would be much appreciated.

Also can you try and only give javascript examples please and not jquery.

Thak you for your help in advance

1

There are 1 answers

0
Sebastian 506563 On

For that kind of work you can use Sharepoint JavaScript Client Object Model. Please read about it from:

How to: Complete basic operations using JavaScript library code in SharePoint 2013

there is not much differences in basic operations between 2010/2013 but be aware.