<!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> </DIV>
<DIV><FONT size=2>But you misunderstanded the problem I meet.</FONT></DIV>
<DIV><FONT size=2></FONT> </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 which one being selected.I find
the solutions of the problem.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>targetobj is the select object I want to change its
options , the refereddata is an array to store the values I want to change to
select object's options's text.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>for (i = 0; i < refereddata.length; i++)
{ </FONT></DIV>
<DIV><FONT size=2> </FONT><FONT size=2>var newOption =
document.createElement("OPTION");<BR> newOption.text="refereddata[i]";<BR>
newOption.value="i"; <BR> targetobj.options[i]
= new
Option(newOption.text,newOption.value); <BR> <BR>} <BR>targetobj.length
= i;</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT><BR> </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> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><html><BR><head><BR><script
type="text/javascript"><BR> function testing
()<BR> {<BR> myCombo.selectedIndex =
4;<BR> }<BR></script><BR></head><BR><body><BR> <center><BR> <button
onclick="testing ();">just testing</button><BR> <select
id="myCombo"><BR> <option>zero</option><BR> <option
selected>one</option><BR> <option>two</option><BR> <option>three</option><BR> <option>four</option><BR> <option>five</option><BR> </select><BR> </center><BR></body><BR></html><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>If you want more about HTML "select" object,
look on the 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> </DIV>
<DIV><FONT size=2> I want change select's options dynamic
without refresh page,but I don't know how to.If the function like this
can realize,if you know ,please tell me .Thanks!</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> Steven
Piao</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>