我想在asp中使用javascript将Enabled属性的值从false更改为true:RequiredFieldValidator
并且有:
> window.CKEDITOR.version
< "3.6.4"
答案 0 :(得分:1)
这将为您提供继续操作方案的概述。如果您对此有任何疑问,请与我们联系,
<script type="text/javascript" language="javascript" >
function validate() {
var vmode = document.getElementById("rfvPropertyName");
vmode.Visibility = visible;
}
</script>
<asp:RequiredFieldValidator ID="rfvPropertyName"
Text="*"
CssClass="RedText"
runat="server"
ErrorMessage="please enter your name."
ValidationGroup="QuerySystem"
ControlToValidate="txtPropertyName" Enabled="False"
></asp:RequiredFieldValidator>
<asp:RadioButton ID="radPropertyName" GroupName="Methods" runat="server" Text="Real Name" checked="true" OnClientClick = "validate()" />