从缓存中选择电子邮件的事件是什么?
What is the event of selecting an email from the cache?
我有一个输入允许用户输入他们的电子邮件来找回密码。
当用户 select 是先前输入的电子邮件列表(缓存)中的一封电子邮件时,调用 js / jQuery 中的什么事件?
我试了很多方法都不行,我的代码如下:
$("#input_emailResetpassword").on('blur keyup change click focus', function (e) {
if ($form_changepassword.valid()) {
$buttonResetPass.removeAttr('disabled', '');
}
});
当用户使用 tab 键来 select 缓存电子邮件列表中的一封电子邮件时调用什么?
我想在光标位于输入中时立即进行验证。一旦用户 select 收到其中一封缓存电子邮件。
当用户从之前输入的电子邮件列表(缓存)中选择其中一封电子邮件时 input
事件是 called.You 可以执行以下操作:
$("#input_emailResetpassword").on('input', function (e) {
if ($form_changepassword.valid()) {
$buttonResetPass.removeAttr('disabled', '');
}
});
您可以使用 Input 事件,它在通过用户界面更改元素的文本内容时发生。所以你的代码看起来像。
$("#input_emailResetpassword").on('input', function (e) {
if ($form_changepassword.valid()) {
$buttonResetPass.removeAttr('disabled', '');
}
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
我有一个输入允许用户输入他们的电子邮件来找回密码。
当用户 select 是先前输入的电子邮件列表(缓存)中的一封电子邮件时,调用 js / jQuery 中的什么事件?
我试了很多方法都不行,我的代码如下:
$("#input_emailResetpassword").on('blur keyup change click focus', function (e) {
if ($form_changepassword.valid()) {
$buttonResetPass.removeAttr('disabled', '');
}
});
当用户使用 tab 键来 select 缓存电子邮件列表中的一封电子邮件时调用什么? 我想在光标位于输入中时立即进行验证。一旦用户 select 收到其中一封缓存电子邮件。
当用户从之前输入的电子邮件列表(缓存)中选择其中一封电子邮件时 input
事件是 called.You 可以执行以下操作:
$("#input_emailResetpassword").on('input', function (e) {
if ($form_changepassword.valid()) {
$buttonResetPass.removeAttr('disabled', '');
}
});
您可以使用 Input 事件,它在通过用户界面更改元素的文本内容时发生。所以你的代码看起来像。
$("#input_emailResetpassword").on('input', function (e) {
if ($form_changepassword.valid()) {
$buttonResetPass.removeAttr('disabled', '');
}
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>