/    Sign up×
Community /Pin to ProfileBookmark

Any way to lock a checkbox in a checked state?

I have PHP-generated HMTL page, in which a certain checkbox is checked depending on input from the previous page. Is there a way to keep the user from un-checking the checked box – say a “locked” property or something – or should I find another way to do this?

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@Cactus_HuggerMar 22.2003 — Add a Disabled or Readonly to it. (<input type=text disabled>)

http://www.htmlhelp.com/reference/html40/forms/input.html

You can also just make it a hidden. (<input type=hidden>)
×

Success!

Help @bunner_bob 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.20,
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,
)...