select 的问题,应该不难~

subasan 2006-05-18 06:19:52
<select name='select1'>
<option value='1'>3<option>
</select>

document.form1.select1.value=1
document.form1.select1.????=3
...全文
88 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
lshk_520 2006-05-18
  • 打赏
  • 举报
回复
写啥
webphoenix 2006-05-18
  • 打赏
  • 举报
回复
<select name="select1" id="id_select1">
<option value="1">3</option>
</select>


准确的应该这样写:
var select_ = document.getElementById('id_select1');

select_.options[0].value = '1';
select_.options[0].text = '3';


如果是第N个就用 select_.options[n]
jobs002 2006-05-18
  • 打赏
  • 举报
回复
document.form1.select1.text=3

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧