是HTML控件的ID它由JavaScript或CASESENSITIVE不叫 [英] is ID of html controls which called by javascript casesensitive or not
本文介绍了是HTML控件的ID它由JavaScript或CASESENSITIVE不叫的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有这个控制
<input id="btnBackMP" type="button" value="<" onclick="BackGroup('MP') ;"
disabled="disabled" style="background-color: #BF0000; width: 28px;" />
backGroup功能里面我用这个code线:
inside backGroup Function i used this Code Line :
document.getElementById('btnback' + Key).disabled = true;
这行工作的Web开发罚款,但是当我在服务器上发表我的网站(IIS 7)
该行停止工作,直到我改成了以下内容:
this line works fine on Web Dev but when i published my site on server (iis 7) this line stop working till i changed it to the following :
document.getElementById('btnBackMP'+ Key).disabled = true;
任何一个有想法?
any one have idea ?
感谢
推荐答案
你有没有在调用函数的参数太多,因为之前你逝去的'国会议员'作为参数,并使用为重点改为
Have you changed in calling function argument too since before your are passing 'MP' as argument and using as key
<input id="btnBackMP" type="button" value="<" onclick="BackGroup() ;"
disabled="disabled" style="background-color: #BF0000; width: 28px;" />
和你为什么不直接切换到该行只: -
and why do not you directly change to this line only :-
document.getElementById('btnBackMP').disabled = true;
这篇关于是HTML控件的ID它由JavaScript或CASESENSITIVE不叫的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文