title: How to set default selection of a dropdown by current hour?
body: <p>I tried to make a timepicker for a website or find if jquery, Bootstrap etc. has any of their own (HTML's own uses AM/PM on Firefox and I couldn't change that), all I found were github projects and I can't use many dependencies like them for this project.</p>
  
  <p>So my last solution was to add 2 dropdowns, 1 for current hour, 1 for current minute. Not the prettiest solution but it gets the job done.</p>
  
  <pre><code>&lt;div class="col-lg-2"&gt;
      &lt;select name="Hour"&gt;
      @{
          for(int i = 0; i &lt; 24; i++)
          {
              @:&lt;option value="@i"&gt;@i.ToString("D2")&lt;/option&gt;
          }
      }
      &lt;/select&gt;
      &lt;b&gt;:&lt;/b&gt;
      &lt;select name="Minute"&gt;
          @{
              for (int i = 0; i &lt; 60; i++)
              {
                  @:&lt;option value="@i"&gt;@i.ToString("D2")&lt;/option&gt;
              }
          }
      &lt;/select&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>What I want to do is, I have a datepicker that sets default date to today, I want to do the same thing for these dropdowns, select current hour with first, current minute with second.</p>
  
  <p>How can I do this?</p>
  
  <p>(Any suggestions for a better clock/timepicker is also welcome but I find this one sufficient enough for my project and looks decent)</p>