title: Get AM/PM from HTML time input
body: <p>First, I know that <code>&lt;input type="time"&gt;</code> is not supported by IE10 or earlier, and Firefox, but this is only for testing purposes and I will make appropriate, cross-browser changes at another time.</p>
  
  <p>For the time being, I have a HTML time input field. I am trying to extract the values from it including the hour, minutes and AM/PM. I can display the hour and minutes, but an AM/PM indication is not including.</p>
  
  <p>I have an input as follows:</p>
  
  <p><code>&lt;input type="time" name="end-time" id="end-time"&gt;</code></p>
  
  <p>I print out via <code>alert()</code> the input value as follows:</p>
  
  <p><code>alert(document.getElementById('end-time').value);</code></p>
  
  <p>Upon input I receive an alert such as:</p>
  
  <p><code>01:34</code>.</p>
  
  <p>Notice that an AM/PM is not included in the <code>alert()</code>.</p>
  
  <p>How can I get the AM/PM value from a HTML time input via Javascript?</p>