作者:小森林 | 来源:互联网 | 2023-10-11 11:12
Hi Robin!
Great plugin, all works just fine, but I cannot activate the yearrange property. Seems to be not supported in recent version...
Using jquery.inputmask.bundle.min.js
What am I doing wrong, or are there any alternative ways to limit year range?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| ...
Inputmask.extendAliases({
'dategood': {
alias: 'datetime',
inputFormat: "dd.mm.yyyy г.",
placeholder: "_",
yearrange: {
minyear: "1900",
maxyear: "2000"
}
}
});
$("[name='birth-date']").inputmask({
alias: 'dategood'
}); |
Other inputFormat doesn't make difference.
该提问来源于开源项目:RobinHerbots/Inputmask
, ,
I pushed a fix in version 5.0.4-beta.31