Skip to main content

focus()

sets focus to the checkbox of the CheckboxGroup control by its id

focus(id?: string): void;

Parameters:

id: string - optional, the id of a checkbox

Example

form.getItem("CheckboxGroup").focus("checkbox_1");

If "id" is not specified, the method sets focus to the first checkbox of the Checkbox Group.