Larry Brister
asked on
JavaScript disable button
How would I go about disabling a .Net button on Click event using JavaScript?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
You guys were first.
Thanks
Thanks
<script type="text/javascript">
function disableBtn()
{
var btn= document.getElementById("<
btn.disabled=true;
}
</script>
get the button id
Var button1=document.getElemen
button1.style.display="blo
or
document.getElementById("b
or disable like this
btnName.Attributes.Add("on
incase of restricting multiple click on postback
http://encosia.com/disable-a-button-control-during-postback/