Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Internet Explorer 8中,不能在html()之后使用jquery选择带有空格的元素,Firefox工作正常_Jquery_Ajax - Fatal编程技术网

在Internet Explorer 8中,不能在html()之后使用jquery选择带有空格的元素,Firefox工作正常

在Internet Explorer 8中,不能在html()之后使用jquery选择带有空格的元素,Firefox工作正常,jquery,ajax,Jquery,Ajax,我有以下用于显示值的代码 <tr> <td class="colheader"><b>Customer Name</b></td> <td style="height: 25px; overflow:hidden;"><s:label cssClass="labelvalue" id="iocustomer" /></td> </tr> function setOrderInqRespo

我有以下用于显示值的代码

<tr>
<td class="colheader"><b>Customer Name</b></td>
<td style="height: 25px; overflow:hidden;"><s:label cssClass="labelvalue" id="iocustomer" /></td>
</tr>
function setOrderInqResponse(data){
  $("#iocustomer").html(data.orderInq.customer);
}

实际数据来自ajax请求,但无法在IE中选择客户名称!,它在Firefox中运行良好。可能有什么问题?

使用html标签标签代替struts标签


这不是HTML。这是JSP吗?Struts2可能?…该行的实际HTML输出是什么而不是服务器端模板?Struts2标记不能选择客户名称是什么意思?控制台错误?您是否在任何地方使用console.log,因为除非控制台已经打开,否则它在IE中无法工作。