Get selected listitems with JavaScript

In some cases you need to do something with the selected items in a list. You can access the items by using some simple JavaScript code:   function GetSelectedItems(){    …

Count list items with JavaScript

The following JavaScript code can be used to count the list items and visualize the number on a dashboard page. This can only be done in SharePoint 2010 by using …