Click to See Complete Forum and Search --> : Disabling button...
cacalex
05-30-2003, 08:29 AM
Is there a way to disable a button until a certain action ???
I need to make an button unusable until the user click on another buton...
I'm confident there is a way, somewhere out there...
khalidali63
05-30-2003, 10:01 AM
yes its very much do able.below is the code that will do that
<form id="form1" action="" onsubmit="">
<p><input type="button" name="b1" value="Choice" onclick="this.form.b2.disabled = ((this.form.b2.disabled)?false:true);"/> </p>
<p><input type="button" name="b2" value="Choice" onclick=";" disabled="disabled"/> </p>
</form>
cacalex
05-30-2003, 10:04 AM
Thanks !
khalidali63
05-30-2003, 10:30 AM
:p
You are most welcome..