<script type="text/javascript">
function Enable_Butt() {
document.getElementById("<%=RadButton1.ClientID%>").disabled = false; // Doesn't Work
}
</script>
我也尝试过此操作,但仍然无法正常工作
$find("<%=RadButton1.ClientID %>").set_enabled(true);
我的代码:
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<telerik:RadButton ID="RadButton1" runat="server" SingleClick="true" SingleClickText="Processing..." AutoPostBack="true" OnClick="Create_Order_Click" Text="Create Order" Font-Bold="true" Font-Size="12" BackColor="#333333" ForeColor="White" Skin="Bootstrap" CssClass="auto-style5" >
</telerik:RadButton>
<asp:Timer ID="Timer1" runat="server" OnTick="Timer1_Tick" Interval="5000" ></asp:Timer>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="RadButton8" EventName="Click" />
<asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
</Triggers>
</asp:UpdatePanel>
protected void Timer1_Tick(object sender, EventArgs e){
ScriptManager.RegisterStartupScript(Page, Page.GetType(), " ", "Enable_Butt()", true);
}
答案 0 :(得分:1)
尝试一下:
document.getElementById("RadButton1").removeAttribute("disabled");
答案 1 :(得分:1)
答案 2 :(得分:0)
对于禁用的属性,您需要这样做。
document.getElementById("<%=RadButton1.ClientID%>").removeAttribute("disabled");