title: Materialize CSS select: Get selected value when close
body: <p>Trying to get selected value on Materialize CSS select element at close.</p>
  
  <p>Something like this:</p>
  
  <pre><code>$('input.select-dropdown').on('close', function() {
      console.log($(this).val());
  });
  </code></pre>
  
  <p>just doesn't work, because shows last selected value. First time shows nothing, and next time shows selected value first time.</p>
  
  <p>I supose this is because close action is declared before asign selected value.</p>
  
  <p>Anyone knows if there is any way to get selected value on "close"?</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I don't want to select value by jquery, I want to detect selected value (if any option has been selected) when dropdown close.</p>
  
  <p>I'm trying to implement label funcionality for select as for text input: when select is opened, label goes smaller, and when select is closed, if no value is selected, returns to initial position.</p>