asp.net.ph

Skip Navigation Links

status Property

Language References


Sets or retrieves whether the check box or radio button is selected.

Syntax


HTML N/A
Script object.status [ = bStatus ]

Possible Values


false Indicates that the control is not selected.
true Indicates that the control is selected.

This property returns or accepts only a boolean value, meaning true if set, and false if not. The property is read/write with a default value of false.

Example

In the following example, the status property is used to control a disabled check box.

<INPUT id=oCheckbox TYPE=checkbox CHECKED DISABLED>
...
<span onclick="oCheckbox.status=false"
  STYLE="font-weight:bold">I disagree</span>.
<span onclick="oCheckbox.status=true"
  STYLE="font-weight:bold">I agree</span>.

This feature requires Microsoft® Internet Explorer® 4.0 or later.

 Show me 

Applies To

INPUT TYPE=checkbox, INPUT TYPE=radio



>

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note