会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
JACKY
不自见,故明;不自是,故彰;不自伐,故有功;不自矜;故长;夫唯不争,故天下莫能与之争。
下拉框自动回发!
dropdownlist
1
<
html
><
body
>
2
<
form
name
="form1"
>
3
<
select
name
="test"
onchange
="document.form1.text1.value=this.options[this.selectedIndex].value"
>
4
<
option
value
="1"
selected
>
测试一
</
option
>
5
<
option
value
="2"
>
测试二
</
option
>
6
<
option
value
="3"
>
测试三
</
option
>
7
<
option
value
="4"
>
测试四
</
option
>
8
</
select
>
9
<
input
type
="text"
name
="text1"
id
="text1"
>
10
</
form
>
11
<
script
>
12
document.form1.test.fireEvent(
'
onchange
'
);
13
</
script
>
14
</
body
></
html
>
15
今天,一直有个类似上面的问题,用户选择下拉框后,脚步和后台事件都没有触发!!
原来忘记设置自动回发了!! 晕!!!
posted on
2008-10-28 14:10
沧海一声笑
阅读(
164
) 评论(
0
)
编辑
收藏
举报
刷新页面
返回顶部
导航
博客园
首页
新随笔
联系
订阅
管理
公告