/    Sign up×
Community /Pin to ProfileBookmark

Disabling button…

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…

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@khalidali63May 30.2003 — 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>
Copy linkTweet thisAlerts:
@cacalexauthorMay 30.2003 — Thanks !
Copy linkTweet thisAlerts:
@khalidali63May 30.2003 — :p

You are most welcome..
×

Success!

Help @cacalex spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...