Java code & lt; selectid & quot; zjj & quot; onclick & quot; changeglz (this. value) & quot; style & quot; width: 200px; & quot; & gt; & lt; optionvalue & quot; All & quot; & gt; All & lt; /option & gt; & lt;
Java code
Style = "width: 200px;">
All
<% = Strfgs %>
The strfgs value is spelled out by this
Java code
For (int I = 0; I <listzrbm. size (); I ++ ){
List fgslist = (List) listzrbm. get (I );
String des = fgslist. get (1). toString ();
If (fgsmc! = Null & des. equals (fgsmc )){
Fgs = fgs +"+ "\" Selected> "+ des +"\ N ";
} Else {
Fgs = fgs +"+ "\"> "+ Des +"\ N ";
}
}
The result is
Bank of China Business Branch
Industrial and Commercial Bank of China branch
Get id
Var id = document. getElementById ('zjj '). value;
Value
Var des = document. getElementById (zjj ).
Options [document. getElementById ('zjj '). selectedIndex]. innerHTML;
Author: "zheng0324jian"