inputmask

HTML

<script src="https://code.jquery.com/jquery-1.10.0.min.js"></script>
<script src="https://rawgit.com/RobinHerbots/Inputmask/5.x/dist/jquery.inputmask.js"></script>
<input type="text" id="money">

JavaScript

$(function(){
	$('#money').inputmask({
            alias: "datetime",
            inputFormat: "HH:MM"

        });
  //not works good, if i do that when i put a 2 in first digit of hours it validate all hours
  //$('#money').inputmask("setvalue", "19:15");
  //not works neither
  $('#money').inputmask("setvalue", "1915");
});