Friday, June 26, 2009

Picklist - get title for value

Hi friends,
how to get picklist value,title

here example to create picklist title for specific value.

function GetPicklistTitle(name, value) {
if (value != '') {
var element = document.getElementById(name);
return element == null ? null : element.options[value].text;
}
return "";
}
enjoy
Rami Heleg.