focus

смещает фокус на форму

void focus(string item);

Parameters

itemstringID контрола внутри формы

Example

//htmlform
<input type="button" value="Focus author" onclick="focus_form('author');" />
<input type="button" value="Focus genre" onclick="focus_form('genre');" />
 
...
function focus_form(item) {
    if (!item)
        $$('htmlform1').focus();
    else
        $$('htmlform1').focus(item);
}

Details

При вызове без параметра метод смещает фокус на контрол в форме.

See also
Наверх
If you have not checked yet, be sure to visit site of our main product Webix javascript dashboard framework and page of form widget product.