Hi! Could someone provide me an example of how to change the text of a RadButton using JavaScript? Basically when a user clicks the 'submit' button I want to display an alert message, disable the button, and change the text to say 'Submitting'. I've got the alert message working, but the button text doesn't appear to change nor is it disable.
Here's the lines of code for the javascript...
Here's the button code...
There are validation controls on the page and a RadAjaxManager is being used.
Thank you!
Here's the lines of code for the javascript...
<telerik:RadCodeBlock ID="rcb1" runat="server"> <script type="text/javascript"> function DisableSubmitBtn() { alert("Submitting Review, please do not click submit more than once");
document.getElementById('<% =btnItemSubmitE.ClientId %>').value = 'Submitting';
} </script></telerik:RadCodeBlock>Here's the button code...
<telerik:RadButton ID="btnItemSubmitE" runat="server" Skin="Sunset" Text="Submit" Width="45%" ValidationGroup="Review" OnClientClicked="DisableSubmitBtn" > <Icon PrimaryIconCssClass="rbOk" PrimaryIconLeft="4" PrimaryIconTop="4" /> </telerik:RadButton>There are validation controls on the page and a RadAjaxManager is being used.
Thank you!