Check documentation for the latest version of dhtmlxSuite onFocus DHTMLX Docs

onFocus

fires when an input gets focus

void onFocus(string name,string value);
namestringitem name
valuestringitem value (for radios only)

Example

//for radios and checkboxes
myForm.attachEvent("onFocus", function(name, value){
    //your code here
});
 
//for other controls
myForm.attachEvent("onFocus", function(name){
    //your code here
});

Back to top