全部, 我在onclick函数上添加了输入框,如下所示
HtmlContent =HtmlContent+ "<input id = '" + uid + "' onkeypress='DefaultEnterButton(event,'imgGo')' class='jobCenterArea' type='text' onkeydown='IsNumeric(" + uid + ")' onclick ='getActiveElementId();' name='txtBoxSch_" + txtBoxCnt + "' /> " +
"<img src='/COSimages/BusPortal/custom-x.png' alt='Close Icon' height='14' width ='14' onclick=' Remove_TextBox(" + uid + ")'/> "+htmllabel;
以上代码在FF,chrome和safari中运行良好,但在IE [7&amp; 8]
我尝试了下面的代码,但没有在IE中工作
document.getElementById(uid).onkeypress = function(event){return DefaultEnterButton(event,'imgGo')};
[我想要实现的功能是,在用户输入关键字后,当他们点击输入按钮时,它不仅应该通过点击搜索按钮转到下一页] 有什么建议吗?
更新
解决方案是将'
替换为'
。
http://www.digimantra.com/tips/how-to-display-apos-in-internet-explorer-ie/
感谢大家的投入。