A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.dhtmlx.com/suite/form/checkbox/ below:

Website Navigation


JavaScript Form - Checkbox | DHTMLX Suite 9 Docs

Checkbox

A control that allows displaying the specified value or change it to the opposite one.

Related sample: Form. All controls

Related sample: Form. Checkboxes

Adding Checkbox​

You can easily add a Checkbox control during initialization of a form:

const form = new dhx.Form("form_container", {
rows: [
{
type: "checkbox",
label: "I agree",
name: "agree",
id: "agree",
value: "checkboxvalue"
}
]
});
Properties​

View the full list of configuration properties of the Checkbox control.

Working with Checkbox​

You can manipulate a Checkbox control by using methods or events of the object returned by the getItem() method.

For example, you can get the value of the control:

const value = form.getItem("checkbox").getValue();
Methods​

Check the full list of methods of the Checkbox control.

Events​

Check the full list of events of the Checkbox control.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4