DHTMLX Docs & Samples Explorer

isItemChecked(name, value)

(boolean)
Returns true if item is checked (checkbox and radio button only).

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

See also: