DHTMLX Docs & Samples Explorer

onBlur

occurs when the user leaves an input.

Parameters:

  • name - (string) the item id (the value of attribute name)
  • value - (string) the item value (for checkboxes and radios only)
//for radios and checkboxes
myForm.attachEvent("onBlur", function(name, value){
	//any custom logic here
});
 
//for other controls
myForm.attachEvent("onBlur", function(name){
	//any custom logic here
});

See also: onFocus