document.getElementById('grand_total_display').innerHTML =“总计为:$" +变量;在IE6和IE7中显示错误 [英] document.getElementById('grand_total_display').innerHTML = "Total is : $"+variable; is displaying error in IE6 and IE7
本文介绍了document.getElementById('grand_total_display').innerHTML =“总计为:$" +变量;在IE6和IE7中显示错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
document.getElementById('grand_total_display).innerHTML = "Total is : $"+variable;
在IE6和IE7中显示错误
document.getElementById('grand_total_display).innerHTML = "Total is : $"+variable;
is displaying error in IE6 and IE7
我有一个<li>
,其ID为 grand_total_display ,其中显示了一些文字.
I have an <li>
with id as grand_total_display with some text displayed in it.
<li class="bannerprice" id="grand_total_display">TOTAL PRICE : $0</li>
我正在执行一个JavaScript函数,将一些其他值插入其中..但显示以下错误:
I am executing a jjavascript function to insert some other value into it.. but I am displayed with the error as given below:
请帮助我纠正此问题
推荐答案
您输入了错误的ID:
variable = "howdy";
document.getElementById('grand_total_display').innerHTML = "Total is : $"+variable;
代替
variable = "howdy";
document.getElementById('totaldisplay').innerHTML = "Total is : $"+variable;
这篇关于document.getElementById('grand_total_display').innerHTML =“总计为:$" +变量;在IE6和IE7中显示错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文