DHTMLX Docs & Samples Explorer

setItemFocus(name)

Sets the keyboard focus to the specified item. Applied to input, textarea, password, calendar, colorpicker, editor.

Parameters:

  • name - the id of item (the item's parameter 'name')
myForm.setItemFocus("myItem");

See also: setFocusOnFirstActive