Log in

View Full Version : disabling/locking Check box



sanjoeapen
11-16-2006, 12:15 PM
Hi Friends,

I wanted to know whether we can disable/lock a checkbox field without using the <disable> attribute in HTML. It causing problems for us in Java. we wanted the value of the check box. it comes to JavaScript Level but its not coming to our Java level.. Hence we wanted help..
Kindly advice..

Thanks in advance
Sanjo

djr33
11-16-2006, 12:30 PM
You could style it to be hidden....

sanjoeapen
11-16-2006, 12:33 PM
I didnt get u..
You meant to say, hide that checkbox??

mwinter
11-16-2006, 08:43 PM
I wanted to know whether we can disable/lock a checkbox field without using the <disable> attribute in HTML.

One can stop a user from typing in some controls by adding the readonly attribute, or by setting the readOnly property to true. The control can still be successful, but the user cannot edit it directly. A clever user can still modify the value, though, so it's not a secure feature.

Mike