# Checkbox 复选框

{% embed url="<https://h5ui.io/example/checkbox.html>" %}

<div align="left"><figure><img src="/files/vxYf6W70cehUsTKq5i97" alt="" width="375"><figcaption></figcaption></figure></div>

```html
<div class="h5ui-checkbox" data-toggle="buttons">
    <label class="btn active">
        <input type="checkbox" checked="checked">
        <span class="h5ui-checkbox_bd">已选中</span>
        <span class="h5ui-checkbox_ft"></span>
    </label>

    <label class="btn active">
        <input type="checkbox" checked="checked">
        <span class="h5ui-checkbox_bd">已选中</span>
        <span class="h5ui-checkbox_ft"></span>
    </label>

    <label class="btn">
        <input type="checkbox">
        <span class="h5ui-checkbox_bd">未选</span>
        <span class="h5ui-checkbox_ft"></span>
    </label>

    <label class="btn disabled">
        <input type="checkbox">
        <span class="h5ui-checkbox_bd">锁定状态</span>
        <span class="h5ui-checkbox_ft"></span>
    </label>
</div>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.h5ui.io/checkbox.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
