DHTMLX Docs & Samples Explorer

getItemLabel(name, value)

Returns the label of item.

Parameters:

  • name - the id of item (the item's parameter 'name')
  • value - the value of a radio button ( the radio's parameter 'value'). Required for 'radio' items only
  // for radio button
var text = myForm.getItemLabel(name, value);
  // for other items
var text = myForm.getItemLabel(name);

See also: