Hello guys,
i have a dropdown list box which works ok, but trying to convert the javascript value to a label.

I need to convert this code which uses a dropdown list to a label. How do i go about it ?

instead of ddlage.options.length and the other 2 occurences, how do i set it to pick the value to a label, as i change the control from a dropdown box to a label

thanks



for (var i=0; i< ddlage.options.length ; i++)
{

if ( ddlage.options[i].value == age )
{
ddlage.options[i].selected = true;
}
}