我在select里加了onChange事件,在IE里没事,在FF里不触发该事件
解决方案 »
- 通过点击<A>链接打开div想实现点击网页任意部位div关闭
- google首页的一些脚本好难懂,大侠赐教.
- extjs Viewport下tabpanel下多个EditorGridPanel总是共用一个columns
- 5月16号北京:ofbiz沙龙 世纪科贸大厦举行
- 请问下js在eval的时候出错了(json),怎么办?
- 填充注释部分 使foo()函数弹出YES的对话框
- 正则表达式a.?b与a.??b之间的区别是什么?
- 急求,一段多引号的字符串的写法
- 我的正则表达式为什么老是无法正确判断,急
- focus()的问题
- 对图片的javascript实现操作
- ××××判断字符串左右两边是否有运算符的问题××××
<select name="selSource" onChange="changelocation(document.getElementById('selSource').options[document.getElementById('selSource').selectedIndex].value)">
<option value="en">English</option>
<option value="jap">日语</option>
</select>
<select name="selTarget">
</select>
<script>
subcat=new Array();
subcat[1]=new Array("阿拉伯语","en","ab");
subcat[2]=new Array("English","jap","en");
subcat[3]=new Array("日语","en","jap");
var count=3;function changelocation(code)
{
document.getElementById('selTarget').options.length = 0;
var code=code;
var i,seltar;
for (i=1;i <= count; i++)
{
if (subcat[i][1] == code)
{
document.getElementById('selTarget').options[document.getElementById('selTarget').options.length] = new Option(subcat[i][0], subcat[i][2],true,true);
}
}
}</script>
getElementById('selSource')<select name="selSource" id="selSource" onChange=....