Hi! Is there a way to set a timeout for disabling a RadButton in the client-side? I would like to disable a RadButton for 5 seconds after a user clicks on it.
Here's the current code I have:
I've tried using the window.setTimeout function but it doesn't seem to have any effect. I have tried both:
Thanks!
Here's the current code I have:
function DisableSubmitBtn() {
var btnSubmit = $find('<% =btnItemSubmit.ClientId %>')
btnSubmit.set_text("Submitting");
btnSubmit.set_enabled(false)
}
I've tried using the window.setTimeout function but it doesn't seem to have any effect. I have tried both:
setTimeout('document.getElementById("' + btnItemSubmit + '").disabled = false', 2000);
var btnSubmit = $find('<% =btnItemSubmit.ClientId %>')
setTimeout('btnSubmit.set_enabled(false)', 2000);
Thanks!