title: Select drop down list item if value match from group label?
body: <p>I wanna add a dynamic function that will auto select the drop down list if/with any of the value that matches the input fields label? </p>
  
  <p>In the snippet bellow, <strong>Product Code</strong> should be selected ( since label IS <strong>Product Code</strong>)</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;div class="col-sm-12 col-md-4"&gt;
    &lt;div class="form-group"&gt;
      &lt;label for=""&gt;Product Code&lt;/label&gt; &lt;select id="ddlProductCode"
      class="form-control input-sm"&gt;
        &lt;option value="0"&gt;
          --Select--
        &lt;/option&gt;
        &lt;option value="Product Code"&gt;
          Product Code
        &lt;/option&gt;
        &lt;option value="Product Name"&gt;
          Product Name
        &lt;/option&gt;
        &lt;option value="Product Description"&gt;
          Product Description
        &lt;/option&gt;
        &lt;option value="Product Category"&gt;
          Product Category
        &lt;/option&gt;
        &lt;option value="Product Sub Category"&gt;
          Product Sub Category
        &lt;/option&gt;
       
      &lt;/select&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Many thanks in advance!
  Dav</p>