...

View Full Version : Untickable checkboxes



guvenck
02-08-2007, 10:11 PM
I need to use untickable checkboxes. They should start as checked remain checked when trying to untick them. How is this possible?

david_kw
02-08-2007, 10:21 PM
Try

<input type="checkbox" name="cb" checked="checked" onclick="return(false);" />

david_kw

guvenck
02-09-2007, 12:45 PM
That works as expexted. Thank you very much, David.

Bill Posters
02-09-2007, 02:44 PM
Bear in mind that this isn't going to work for non-js users.
If it's for a legal consent/agreement checkbox, then you might consider other ways to 'enforce' the condition or validate the state of the checkbox.

Just a heads up.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum