getItemLabel

returns the label of an item

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

Parameters

namestringthe name of an item
valuestringthe value of a radio button

Returns

stringan item's label

Example

// for a radio button
var text = myForm.getItemLabel(name, value);
 
// for other items
var text = myForm.getItemLabel(name);

Back to top