This is a migrated thread and some comments may be shown as answers.

Automatically disable button

1 Answer 65 Views
Button
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 1
Stephen asked on 09 Jul 2012, 10:34 AM
How can I disable button automatically after  10 seconds?

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 09 Jul 2012, 10:58 AM
Hi Stephen,

Try the following Javascript to achieve your scenario.

JS:
function pageLoad()
 {
  var t = setTimeout("disable()", 10000);
 }
function disable()
 {
  var btn = $find("<%=RadButton1.ClientID %>");
  btn.set_enabled(false);
 }


Hope this helps.

Thanks,
Princy.
Tags
Button
Asked by
Stephen
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or