title: Create linked time input - HTML/PHP/JAVASCRIPT
body: <p>I need to "link" the two input forms so if i select a certain time, the second input will not display times before the choosen one.</p>
  
  <p>ex: I select 16:30, the second input displays: 17:00, 17:30, 18:00, etc...</p>
  
  <p>sorry for my bad english. here's the code. I think i need to use JS to hide other objects but i don't know how to do it.</p>
  
  <p>Thanks for help</p>
  
  <pre><code>&lt;div class="input-group"&gt;
    &lt;!--start time--&gt;
    &lt;span class="input-group-addon"&gt;&lt;div class="ciao"&gt;Inizio&lt;/div&gt;&lt;/span&gt;
    &lt;select class="form-control" name="start"&gt;
      &lt;?php $orari=h oursRange(12 * 3600, 20 * 3600, 30 * 60); 
            foreach ($orari as $key=&gt;$value) { 
             echo "&lt;option&gt;$value&lt;/option&gt;"; 
      } ?&gt;
    &lt;/select&gt;
  &lt;/div&gt;
  
  &lt;!--end time--&gt;
  &lt;div class="input-group"&gt;
    &lt;span class="input-group-addon"&gt;&lt;div class="ciao"&gt;Fine&lt;/div&gt;&lt;/span&gt;
    &lt;select class="form-control" name="end"&gt;
      &lt;?php foreach ($orari as $key=&gt;$value) 
            { 
              echo "&lt;option&gt;$value&lt;/option&gt;"; 
           } ?&gt;
    &lt;/select&gt;
  &lt;/div&gt;
  </code></pre>