For element, maxlength is not working. How can I restrict the maxlength for that number element?
maxlength
HTML Input
jQuery
$(".minutesInput").on('keyup keypress blur change', function(e) { if($(this).val() > 120){ $(this).val('120'); return false; } });