when populating the option object dynamically, I am not getting the expected result when the
string contains &
string="This is
Testing -> A & B ";
select = window.document.search.mySelect;
select.options.length = 0;
select.options[0]= new Option(string);
Prints option contains ->"This is Testing -> A & B ";
Not "This is Testing -> A & B "
Where as if I create it this way
<select name="mySelect">
<option>Apple &</option>
</select>
The reslting string is - > Apple &
Help.