Hi,
I was wondering if this is correct code for determine the contents of
a listbox. I'm particularly interested to know if the
sel1.options[i].valueOf() call will tell me the value of the item as
it loops through the for statement:
function listBoxContents(sel1)
{
var selLength1 = sel1.length;
var i;
var values;
for(i=0; i<=selLength1-1; i++)
{
values=sel1.options[i].valueOf() + ",";
}
var lastComma = values.lastIndexOf(',');
values = values.substring(0,lastComma);
return values;
}