有谁知道如何让Kendo Numeric在用户键入星号时显示星号吗?type="password"不起作用。谢谢。
下面是我的代码:
<input type="password" id="login_screen_password" data-bind="value: login_screen_password" />
$('#login_screen_password').width(100).kendoNumericTextBox({
format: "#",
min: 1111,
max: 9999,
spinners: false
});
$('#login_screen_password').attr('maxlength', '4'); // limit length of numbers inputted发布于 2015-05-17 16:34:32
你为什么要用Kendo NumericTextBox来做这个?你也可以使用普通的文本框来实现同样的效果,请参阅fiddle here
<input type="password" id="login_screen_password" data-bind="value: login_screen_password" pattern="^[0-9]{1111,9999}$" />https://stackoverflow.com/questions/30198025
复制相似问题