View Full Version : Untickable checkboxes
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?
02-08-2007, 10:21 PM
<input type="checkbox" name="cb" checked="checked" onclick="return(false);" />
02-09-2007, 12:45 PM
That works as expexted. Thank you very much, David.
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.