getElementById在IE8中不起作用 [英] getElementById not working in IE8

查看:114
本文介绍了getElementById在IE8中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<已删除的语言="JavaScript1.2">
函数changeimage(towhat,tothat){
document.getElementById(towhich).src = towhat;
}


<已删除enctype ="multipart/form-data" action =" method ="post">



<已移除onchange ="changeimage(this.value,``BN1''))" value =" type ="file" name ="file1" accept ="images/newcollections/jpg">






<removed language="JavaScript1.2">
function changeimage(towhat,towhich){
document.getElementById(towhich).src=towhat;
}


<removed enctype="multipart/form-data" action="" method="post">



<removed onchange="changeimage(this.value,''BN1'')" value="" type="file" name="file1" accept="images/newcollections/jpg">






推荐答案

1.请阅读论坛指南.
2.您的标签为IE7,标题为IE8.
3.您需要描述您想做的事情以及实际的错误是什么.
4.请将您的代码放在代码块标签中.
1. Please read the forum guidelines.
2. Your tag says IE7 and the title is IE8.
3. You need to describe what you are trying to do, and what the actual error is.
4. Please place your code in the code block tags.


这篇关于getElementById在IE8中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆