guvenck
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?
|
||||
Untickable checkboxesguvenck 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? david_kw 02-08-2007, 09:21 PM Try <input type="checkbox" name="cb" checked="checked" onclick="return(false);" /> david_kw guvenck 02-09-2007, 11:45 AM That works as expexted. Thank you very much, David. Bill Posters 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. |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum