Hi all,
I have to lock a Checkbox in HTML, I don't want to disable it since it spoils the look of the site, is there any way to lock it as though we do with a textbox, if so How Can Anyone plz help on this
Regards
Raj
Printable View
Hi all,
I have to lock a Checkbox in HTML, I don't want to disable it since it spoils the look of the site, is there any way to lock it as though we do with a textbox, if so How Can Anyone plz help on this
Regards
Raj
I usually try to control what can happen. Most times I want the item to be able to be set on but no off so I do like so.
This will allow to be set on but trying to click off just sets value on.Code:<SCRIPT LANGUAGE=JAVASCRIPT>
var IsClicked = 0;
function SetClick()
{
if (IsClicked)
BOB.checked = true;
else
IsClicked=1;
}
</SCRIPT>
<INPUT TYPE=checkbox NAME=BOB OnClick="SetClick()">Test
Not sure of any other way to do what you ask.
Thanks anyway I will try to build the logic from here
regards
Raj