<input class="fields expired" id="mm" required type="text" placeholder="Месяц" maxlength="2">
$('#mm').bind('input keyup change', function() {
var value = this.value;
if (/^\d{1,2}|$13/.test(value))
this.value = value.slice(0,-1);
});