验证后试图启用按钮
试图启用Kendo中更改事件的按钮,但它不能启用该按钮,请有人帮助我找到正在发生的事情
function onChange(){
if($("#firstNameProperty").val()!=''&& $("#lastNameProperty").val()!='' && $("#emailField").val()!='' && $("#selectOwner").val()!='' &&
$("#cprNumberProperty").val()!='' && $("#phoneField").val()!=''){
console.log("enabled");
$('#addToGrid').prop("disabled",false);
}
else{
console.log("disabled");
$('#addToGrid').prop('disabled',true)
}
}
Trying to enable the button on change event in kendo but it is not enabling the button can someone please help me to find what is happening
function onChange(){
if($("#firstNameProperty").val()!=''&& $("#lastNameProperty").val()!='' && $("#emailField").val()!='' && $("#selectOwner").val()!='' &&
$("#cprNumberProperty").val()!='' && $("#phoneField").val()!=''){
console.log("enabled");
$('#addToGrid').prop("disabled",false);
}
else{
console.log("disabled");
$('#addToGrid').prop('disabled',true)
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来您正在使用kendo ui进行jQuery,您可以这样做才能禁用:
并启用:
It looks like you are using Kendo UI for jQuery, you can do this to disable:
and to enable: