Thanks Adam
selectedText[i] = selectedText[i].replace(/^\s+|\s+$/g,'');
theSelTo.options[theSelTo.options.length]=new Option(selectedText[i],selectedValues[i],true,true);
I used above code, still I get the same value with blank spaces in the option field.
Where am I going wrong.
Thanks...