getItemType

returns the type of an item

string getItemType(string name, [string value] );

Parameters

namestringthe name of an item
valuestringthe value of a radio button

Returns

stringitem type

Example

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

Back to top