title: making input type time for 24 format jq
body: <p>i'm trying to make something line  but in 24 format not 12 format so i made input field with 2 arrows up and down when i click on up the inc() function is called and down the dec() function is called but my problem is these functions inc and dec hours how can i make something that make this for hours and minutes .</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-js lang-js prettyprint-override"><code>function inc() {
    var admissionTime = $(".add-time").val();
    var hours = parseInt(admissionTime.split(":")[0]); ///before
    var minutes = parseInt(admissionTime.split(":")[1]);
    hours = hours + 1;
  
    if (hours &lt;= 24) {
      var bb = hours + ':' + minutes;
      $(".add-time").val(bb);
    } else {
      var bb = 00 + ':' + 00;
      $(".add-time").val(bb);
    }
  }
  
  function dec() {
    var admissionTime = $(".add-time").val();
    var hours = parseInt(admissionTime.split(":")[0]); ///before
    var minutes = parseInt(admissionTime.split(":")[1]); ///after
    minutes = minutes - 1;
    if (minutes &lt;= 60) {
      $(".add-time").val() = hours + ':' + minutes;
    }
  
  }</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;link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" /&gt;
  &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;div class="col-md-12 col-sm-12 timer-container"&gt;
    &lt;label&gt;Time *&lt;/label&gt;
    &lt;div class="timer"&gt;
      &lt;i class="fa fa-caret-up " id="incease" aria-hidden="true" onclick="inc()"&gt;Inc&lt;/i&gt;
      &lt;i class="fa fa-caret-down" id="decrease" aria-hidden="true" onclick="dec()"&gt;Dec&lt;/i&gt;
    &lt;/div&gt;
    &lt;input type="text" name="time" value="{{admission.time}}" class="add-time form-control required"&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>