DHTMLX Docs & Samples Explorer

isItem(name, value)

(boolean)
Returns true if item exists.

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 buttons
var isExist = myForm.isItem(name, value);
//for other items
var isExist = myForm.isItem(name);

See also: