jquery - Validation on Masked Input Plugin -
i using masked input plugin validate following time format:
$("#time").inputmask( 'h:s' );
how can disallow time greater '12:00'?
you can split string , add if statement first item of array. this.
var str = $("#time").val(), parts; parts = str.split(':'); if(parseint(parts[0])>12){ console.log('greater 12'); }