Check documentation for the latest version 6.0 of dhtmlxSuite isItem DHTMLX Docs

isItem

returns "true" if an item exists

boolean isItem(string name, [string value] );

Parameters

namestringthe name of an item
valuestringthe value of an item (for a radio button)

Returns

booleanthe item exists/doesn't exist

Example

//for radio buttons
var isExist = myForm.isItem(name, value);
 
//for other items
var isExist = myForm.isItem(name);

Back to top