|
Subject:
|
readonly checkbox
|
|
Posted By:
|
Dj Kat
|
Post Date:
|
11/28/2005 8:40:33 AM
|
Is there a way do disable switching te checkbox on/of and making it grey.
I want to create a grey checked checkbox.
When I use "disabled" in the input tag it doesn't submit the value of the checkbox.
thnx
This is my junk I'm gona eat it
|
|
Reply By:
|
richard.york
|
Reply Date:
|
11/28/2005 8:44:23 AM
|
Use the readonly attribute:
http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.12.2
HTH!
Regards, Rich
-- [http://www.smilingsouls.net] Mail_IMAP: A PHP/C-Client/PEAR solution for webmail Author: Beginning CSS: Cascading Style Sheets For Web Design
|
|
Reply By:
|
nanddeep
|
Reply Date:
|
11/2/2006 6:53:39 AM
|
Have a checkbox as follows:
<input type="checkbox" name="checkbox" OnClick="javascript:return ReadOnlyCheckBox()" /> Support the above with JavaSript as:
<script language="javascript" type="text/javascript">
function ReadOnlyCheckBox()
{
return false;
}
</script> The above checkbox will not allow the user to change the state and even it will not appear in the Grey background (as Disabled).
|
|
Reply By:
|
Dj Kat
|
Reply Date:
|
11/10/2006 7:34:36 AM
|
thanks for the reply but I solved this problem all ready with the solution York has send me almost a year ago
__________________________________________________________ This is my junk I'm gona eat it
|