weixin_33736832 2019-02-27 10:10 采纳率: 0%
浏览 38

Explorer 11中的AJAX

can I ask for advice about why this code does not work in IE11? Chrome is all right.

This script filters items when writing text. I assume there will be some differences in the browser. Maybe just add some parameter?

Thank you.

<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js">    </script>
</head>
<body>
<input list="brow">
<datalist id="brow">
  <option value="Internet Explorer">
  <option value="Firefox">
  <option value="Chrome">
  <option value="Opera">
  <option value="Safari">
</datalist>  

<script type="text/javascript">
$(document).ready(function(){
$("input").click(function(){
    $(this).next().show();
    $(this).next().hide();
});

});
</script>
</body>
</html>
  • 写回答

1条回答 默认 最新

  • derek5. 2019-02-28 01:29
    关注

    I try to make a test with your code in Chrome and IE 11. Based on my testing result, I find that your code is working fine in both browsers.

    Testing result with chrome:

    enter image description here

    Testing result with IE 11:

    enter image description here

    In testing, You can see that it is working fine in IE 11. I suggest you to try to run the above code with IE and again try to check whether it is working or not. If issue persist than try to inform us the detailed information about your issue. You can also tell us if you see any error or warning message.

    评论

报告相同问题?

悬赏问题

  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作