0

有谁知道如何让 Kendo 数字文本框在用户输入时显示星号? 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
4

1 回答 1

1

你为什么要为此使用 Kendo NumericTextBox ?您也可以使用普通文本框实现相同的效果,请在此处查看小提琴

<input type="password" id="login_screen_password" data-bind="value: login_screen_password" pattern="^[0-9]{1111,9999}$" />
于 2015-05-17T08:34:32.013 回答