Click to See Complete Forum and Search --> : how can i make a checkbox that is not changable


pelegk1
04-04-2004, 04:33 AM
i want to show a mraked checked box that is disabled?(so the user cant chage it)
thanks in advance
peleg

fredmv
04-04-2004, 04:47 AM
<input type="checkbox" checked="checked" disabled="disabled" />

steelersfan88
04-04-2004, 10:45 AM
of course, fred forgot to ask why on earth you would want this, as that elimates the purpose of a check box :)

Vladdy
04-04-2004, 10:50 AM
Also, be advised that disabled controls are not submitted with the form.

steelersfan88
04-04-2004, 10:57 AM
with what vladdy gave, if you want to submit the checkbox that will never, ever, be checked, rid the disbaled attribute and use:<input ... onclick="this.checked=true/false">or similar :)

shimon
04-05-2004, 06:37 AM
Originally posted by steelersfan88
if you want to submit the checkbox that will never, ever, be checked, rid the disbaled attribute and use:<input ... onclick="this.checked=true/false">

never, ever? dont bet the mortgage on it - i can think of three ways round that within even trying

steelersfan88
04-05-2004, 02:02 PM
then do you to loop every 1 millisecond unchecking the box? give a better way then that willstill submit the unchecked box :)

EDIT: how bout with scripting enabled :)

pelegk1
04-07-2004, 12:27 AM
beacuse i want to show the user that after he check the check box and approved the data some of the things are unchangable