Visual InterDev
Returns a Boolean value indicating whether the check box is checked or unchecked.
Syntax
object.getChecked()
Parameters
Object
A Checkbox script object.
Remarks
The Checkbox object is used for displaying and writing Boolean data to a database. The state of the Checkbox is mapped to the <INPUT> tag's VALUE attribute.
The setting for the VALUE attribute that is displayed on the client browser depends on the data type of the Recordset object's DataField property.
Note This method can be called without data binding.
To set the state of the Checkbox object, see the setChecked method.
Example
The following sample uses DHTML and JavaScript.
if ( myCheckbox.getChecked() )
{
response.write( myCheckbox.getCaption() );
}