gpt4 book ai didi

javascript - KendoNumericTextBox 密码类型

转载 作者:行者123 更新时间:2023-12-03 10:09:31 25 4
gpt4 key购买 nike

有谁知道如何让 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

最佳答案

为什么要使用 Kendo NumericTextBox 来实现此目的?您也可以使用普通文本框实现相同的目的,请参阅 fiddle here

<input type="password" id="login_screen_password" data-bind="value: login_screen_password" pattern="^[0-9]{1111,9999}$" />

关于javascript - KendoNumericTextBox 密码类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30198025/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com