<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Thanks! </FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>But you misunderstanded the problem I meet.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>T</FONT><FONT size=2>he originally meaning I refered is how to 
change the options's value nor to change&nbsp;which one being selected.I find 
the solutions of the problem.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>targetobj is the select object I want to change&nbsp;its 
options , the refereddata is an array to store the values I want to change to 
select object's options's&nbsp;text.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>for (i = 0; i &lt; refereddata.length; i++) 
{&nbsp;&nbsp;</FONT></DIV>
<DIV><FONT size=2>&nbsp; </FONT><FONT size=2>var newOption = 
document.createElement("OPTION");<BR>&nbsp;&nbsp;newOption.text="refereddata[i]";<BR>&nbsp; 
newOption.value="i";&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;targetobj.options[i] 
= new 
Option(newOption.text,newOption.value);&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>}&nbsp;<BR>targetobj.length 
= i;</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2></FONT><BR>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 9pt 宋体">----- Original Message ----- </DIV>
  <DIV style="BACKGROUND: #e4e4e4; FONT: 9pt 宋体; font-color: black"><B>From:</B> 
  <A title=costea.dan@ssi-schaefer.ro 
  href="mailto:costea.dan@ssi-schaefer.ro">Dan Costea</A> </DIV>
  <DIV style="FONT: 9pt 宋体"><B>To:</B> <A title=javascript@LaTech.edu 
  href="mailto:javascript@LaTech.edu">javascript@LaTech.edu</A> </DIV>
  <DIV style="FONT: 9pt 宋体"><B>Sent:</B> Monday, October 14, 2002 2:12 PM</DIV>
  <DIV style="FONT: 9pt 宋体"><B>Subject:</B> Re: [Javascript] how can change 
  select's options dynamic</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial size=2>here is an example:</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>&lt;html&gt;<BR>&lt;head&gt;<BR>&lt;script 
  type="text/javascript"&gt;<BR>&nbsp;function testing 
  ()<BR>&nbsp;{<BR>&nbsp;&nbsp;myCombo.selectedIndex = 
  4;<BR>&nbsp;}<BR>&lt;/script&gt;<BR>&lt;/head&gt;<BR>&lt;body&gt;<BR>&nbsp;&lt;center&gt;<BR>&nbsp;&nbsp;&lt;button 
  onclick="testing ();"&gt;just testing&lt;/button&gt;<BR>&nbsp;&nbsp;&lt;select 
  id="myCombo"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;option&gt;zero&lt;/option&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;option 
  selected&gt;one&lt;/option&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;option&gt;two&lt;/option&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;option&gt;three&lt;/option&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;option&gt;four&lt;/option&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;option&gt;five&lt;/option&gt;<BR>&nbsp;&nbsp;&lt;/select&gt;<BR>&nbsp;&lt;/center&gt;<BR>&lt;/body&gt;<BR>&lt;/html&gt;<BR></FONT></DIV>
  <DIV><FONT face=Arial size=2>If you want more about HTML "select" object, 
  look&nbsp;on the&nbsp;documentation (this is for IE):</DIV></FONT>
  <DIV><FONT face=Arial size=2><A 
  href="http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/select.asp">http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/select.asp</A></FONT></DIV>
  <BLOCKQUOTE dir=ltr 
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
    <DIV 
    style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
    <A title=piaohw@neusoft.com href="mailto:piaohw@neusoft.com">piaohw</A> 
    </DIV>
    <DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu 
    href="mailto:javascript@LaTech.edu">javascript@LaTech.edu</A> </DIV>
    <DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, October 14, 2002 2:48 
    AM</DIV>
    <DIV style="FONT: 10pt arial"><B>Subject:</B> [Javascript] how can change 
    select's options dynamic</DIV>
    <DIV><BR></DIV>
    <DIV><FONT size=2>hi:</FONT></DIV>
    <DIV><FONT size=2></FONT>&nbsp;</DIV>
    <DIV><FONT size=2>&nbsp;&nbsp; I want change select's options dynamic 
    without refresh page,but I don't know how to.If&nbsp;the function like this 
    can realize,if&nbsp;you know ,please tell me .Thanks!</FONT></DIV>
    <DIV><FONT size=2></FONT>&nbsp;</DIV>
    <DIV><FONT size=2></FONT>&nbsp;</DIV>
    <DIV><FONT size=2></FONT>&nbsp;</DIV>
    <DIV><FONT size=2>&nbsp; Steven 
Piao</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>