title: Get data from Materialize CSS chips
body: <p>I need to get data from Materialize CSS <a href="https://materializecss.com/chips.html" rel="nofollow noreferrer">chips</a>, but I don't know, how.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('.chips-placeholder').material_chip({
      placeholder: 'Stanici přidíte stisknutím klávesy enter',
      secondaryPlaceholder: '+Přidat',
  });
  
  function Show(){
      var data = $('.chips-placeholder').material_chip('data');
      document.write(data);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!-- Added external styles and scripts --&gt;
  &lt;script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.7/js/materialize.min.js"&gt;&lt;/script&gt;
  &lt;link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.7/css/materialize.min.css"&gt;
  &lt;link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"&gt;
  
  &lt;!-- HTML body --&gt;
  
  &lt;div class="chips chips-placeholder"&gt;&lt;/div&gt;
  &lt;button onclick="Show()" type="button"&gt;Show&lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>