title: Get label from input class
body: <p>I have to insert "*" to the label only if input is required.</p>
  
  <p>There is a way to get the label of the input tag from the class .notEmpty?</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-html lang-html prettyprint-override"><code>&lt;label for="foo"&gt;Foo&lt;/label&gt;
  &lt;input class="notEmpty" id="foo"&gt;</code></pre>
  </div>
  </div>
  </p>