/    Sign up×
Community /Pin to ProfileBookmark

Disable If Checked

I have a form when it loads already has some of the boxes checked. I want to grey out the boxes that are already check when it loads. Any ideas? Thanks in advance. ?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@CrazyMerlinOct 20.2006 — if it is checked when the page loads, simply set disabled in the elements tag

<input type='radio' disabled ....>
Copy linkTweet thisAlerts:
@landslideauthorOct 20.2006 — the problem with this is the reason some checkbox are checked is beacause if there is data in the database it automaticly checks those boxes. so it varyies depends if there is already data in that field.
Copy linkTweet thisAlerts:
@mudeltaOct 21.2006 — i suppose that you have a server-sided script that checks the checkboxes, so why don't you disable them in that script too?
×

Success!

Help @landslide 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

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