title: I want to change the time automatically when i select the drop down option
body: <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>$(function() {
    var select = $('select').val;
    if (select = 1) {
      $("#selectedTime").val("11:00 AM");
    }
  });
  else {
    $("#selectedTime").val("8:00 PM");
  }
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;select name="" id="" class="select"&gt; 
    &lt;option value=""&gt;Select&lt;/option&gt; 
    &lt;option value="1"&gt;lunch&lt;/option&gt; 
    &lt;option value="2"&gt;Dinner&lt;/option&gt; 
  &lt;/select&gt;
  &lt;input type="time" id="selectedTime"&gt;</code></pre>
  </div>
  </div>
  </p>