选择标签可以创建一个下拉列表并包含它;ltselectgtltoption值
js控件选择选中的项目,代码如下:
lthtmlgtltscripttype#34text/javascript#34gtvarselectedvalue#39lt%(#34line#34)%gt#39functionchangeselected(){jsselectitembyvalue((#34myselect#34),selectedvalue)}functionjsselectitembyvalue(objselect,objitemtext){for(vari0iltobjselect.options.lengthi){if(objselect.options[i]..valueobjitemtext){objselect.options[i]。selectedtruebreak}}}lt/scriptgtltbodyonload#34changeselected()#34gtltselectid#34myselect#34name#34myselect#34gtltoptionvalue#340#34gt0lt/optiongtltoptionvalue#341#34gt1lt/optiongtltoptionvalue#342#34gt2lt/optiongtltoptionvalue#343#34gt3lt/optiongtlt/selectgtlt/bodygtlt/htmlgt