View Full Version : Untickable checkboxes
02-08-2007, 09:11 PM
I need to use untickable checkboxes. They should start as checked remain checked when trying to untick them. How is this possible?
02-08-2007, 09:21 PM
<input type="checkbox" name="cb" checked="checked" onclick="return(false);" />
02-09-2007, 11:45 AM
That works as expexted. Thank you very much, David.
02-09-2007, 01: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.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.