title: How to validate select option for a Materialize dropdown?
body: <p>I've got a basic select box using materializecss.</p>
  
  <pre><code>&lt;select id="type" name="type" required="required" class="validate"&gt;
      &lt;option value="" disabled="true" selected="selected"&gt;Choose your option&lt;/option&gt;
      &lt;option value="general"&gt;General&lt;/option&gt;
      &lt;option value="tech"&gt;Tech&lt;/option&gt;
      &lt;option value="person"&gt;Personnel&lt;/option&gt;
      &lt;option value="resource"&gt;Resourcing&lt;/option&gt;
  &lt;/select&gt;
  &lt;label data-error="Select an option"&gt;Type of Question&lt;/label&gt;
  </code></pre>
  
  <p>I want the user to select an option before being able to submit the form.</p>
  
  <p>How can I get it to display the <code>data-error</code> for the label if user doesn't select an option?</p>