服务器代码如下:<asp:CheckBox id=cbQutation runat="server" Enabled="false">
</asp:CheckBox> 如何通过JS使该控件重新启用?
PS:disabled=true 不行
其在前台生成的代码如下:<span disabled="disabled"><input id="dgOther__ctl3_cbQutation" type="checkbox" name="dgOther:_ctl3:cbQutation" disabled="disabled" /></span>大家帮忙看下,出出主意哈:)。
</asp:CheckBox> 如何通过JS使该控件重新启用?
PS:disabled=true 不行
其在前台生成的代码如下:<span disabled="disabled"><input id="dgOther__ctl3_cbQutation" type="checkbox" name="dgOther:_ctl3:cbQutation" disabled="disabled" /></span>大家帮忙看下,出出主意哈:)。
//removeAttribute() 也用了还是不行
{
OtherTable.rows[i-1].cells[1].innerHTML = "<FONT face=宋体></FONT> <span disabled><input id=dgOther__ctl"+i+"_cbQutation type=checkbox name=dgOther:_ctl"+i+":cbQutation disabled /></span>";
}
else
{
OtherTable.rows[i-1].cells[1].innerHTML = "<FONT face=宋体></FONT> <input id=dgOther__ctl"+i+"_cbQutation type=checkbox name=dgOther:_ctl"+i+":cbQutation checked=true />";
}
//直接拼接Html语句了...还在测试,希望没有什么后续BUG
LZ看看清一下IE缓存之类的
考虑了一下,因为是服务器控件会自动在checkbox前加个disabled的span<span disabled="disabled">...</span>所以,我刚开始改了后没出效果。谢谢大家,
结贴了!