问题描述
我想在下拉列表选择更改中清除requiredfieldvalidator的错误消息
我尝试过:
var PaymentModeidValue = $('#<%= ddlPaymentMode.ClientID%>:selected')。val();
if(PaymentModeidValue ==C){
ValidatorEnable($ get('<%= rfvBankName.ClientID%> '),false);
}
else {
ValidatorEnable($ get('<% = rfvBankName.ClientID%>'),true); //显示错误信息,我想消失错误信息
}
I want to clear error message of requiredfieldvalidator on dropdownlist selection change
What I have tried:
var PaymentModeidValue = $('#<%=ddlPaymentMode.ClientID %> :selected').val();
if (PaymentModeidValue == "C") {
ValidatorEnable($get('<%=rfvBankName.ClientID %>'), false);
}
else {
ValidatorEnable($get('<%=rfvBankName.ClientID %>'), true); //Shows error message, I want to disappear error message
}
推荐答案
这篇关于如何在javascript中清除requiredfieldvalidator的错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!