/    Sign up×
Community /Pin to ProfileBookmark

can i disable a button click?

is there a way that i can disable the click on the button
so the button cant be pressed?
and in the button iset the button to :
style=”cursor:hand”

how do i cahnge this back to default using code?
thanks in advance
peleg

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@pyroJan 20.2004 — Disabling button clicks is a very bad idea.

cursor: hand is a very bad idea. (It is IE only, cursor: pointer is the correct way.) To change it back, simply set it to cursor: default;
Copy linkTweet thisAlerts:
@pelegk1authorJan 20.2004 — mouse click for on a button for reason

how do i do that?
Copy linkTweet thisAlerts:
@leebJan 20.2004 — [i]Originally posted by pyro [/i]

[B]

cursor: hand is a very bad idea. (It is IE only, cursor: pointer is the correct way.) To change it back, simply set it to cursor: default; [/B]
[/QUOTE]


Thanks pyro, I have only really programmed for IE until now and I was pulling out my hair over that one.
Copy linkTweet thisAlerts:
@pyroJan 20.2004 — np... ?
Copy linkTweet thisAlerts:
@ray326Jan 20.2004 — [i]Originally posted by pelegk1 [/i]

[B]mouse click for on a button for reason

how do i do that? [/B]
[/QUOTE]
You should be able to disable it through the DOM, which should also give your user some visual indication that it is disabled.
×

Success!

Help @pelegk1 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.18,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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