本文介绍了ValidatorEnable JavaScript函数在IE6中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图有条件地启用或禁用所需的验证器,我已经使用ValidatorEnable()javascript方法启用/禁用了RFV,
但这在IE6中对我不起作用,有人可以建议我解决该问题.
代码:
var rfvPassword = document.getElementById("ctl00_MainContent_rfvPassword");
ValidatorEnable(rfvPassword,true);
问候,
Trinadh
Hi,
I am trying to enable or disable the required feild validator conditionally, I have used ValidatorEnable() javascript method to enable/Disable the RFV,
But it is not working for me in IE6, Could anybody suggest me what i can do, to resolve this.
code:
var rfvPassword = document.getElementById("ctl00_MainContent_rfvPassword");
ValidatorEnable(rfvPassword, true);
Regards,
Trinadh
推荐答案
function ValidatorEnable(val, enable)
{
val.enabled = (enable != false);
}
这篇关于ValidatorEnable JavaScript函数在IE6中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!