# Checkbox Element Element

Getting Started | API | Elements | Actions | Validators | Handlers | Configuration Options | About

## Table of Contents

- 1 Checkbox Element - #checkbox {}

## 1 Checkbox Element - #checkbox {}

The checkbox element produces an HTML checkbox.

### Usage

    #checkbox { id=checkbox1, text="Check Me", checked=true }

### Attributes

text - (string)
  The checkbox's label.
html_encode - (boolean)
  Set to true to safely html-encode the text.
postback - (Erlang term)
  If set, clicking on the checkbox will initiate a Nitrogen postback with the supplied term.
checked - (boolean)
  True if the checkbox should be checked.
value - (string)
  The value that will be posted if checked. The default HTML behavior is the string "on"
html_name - (string)
  The name attribute of the checkbox.

### See Also

- base
- Button
- Link
- Textbox
- Password
- Textarea
- Dropdown
- Dropdown Option

Date: 2012-10-18 03:25:51 CDT

Author: Rusty Klophaus (@rustyio)

Org version 7.8.02 with Emacs version 23

Validate XHTML 1.0

## Comments

Note:To specify code blocks, just use the generic code block syntax:

    <pre><code>your code here</code></pre>

comments powered by Disqus