I use following code:
var context = SP.ClientContext.get_current(); var items = SP.ListOperation.Selection.getSelectedItems(context);
But items collection is empty. On "View all" List form this code work well. Throubles only in EditForm. Can anyone help me?