title: Get Selected items in a list sharepoint online
body: <p>I'm trying to create a function which retrieve all selected items in a list in a specific column however i keep getting following error:</p>
  
  <pre><code>items[i].get_item["Titel"] is not a function
  </code></pre>
  
  <p>However when i use</p>
  
  <pre><code>items[i].id
  </code></pre>
  
  <p>It returns all the ids of the selected items</p>
  
  <p>How come it cant return by the column Titel?</p>
  
  <p>Here is my code </p>
  
  <pre><code>function GetSelectedItemsID() {
  
      SP.SOD.executeFunc('sp.js', 'SP.ClientContext', function(){
  
          var ctx = SP.ClientContext.get_current();
          var items = SP.ListOperation.Selection.getSelectedItems(ctx);
          var myItems = '';
          var i;
  
           for (i in items)
           {
               myItems += ' ' + items[i].get_item("Titel");
  
           }
  
  
           window.alert(myItems);
  
      });
  
  }
  </code></pre>