Jquery IE11问题点击(函数()

Jquery IE11问题点击(函数(),jquery,internet-explorer,Jquery,Internet Explorer,为什么这个函数在IE11上不起作用?它们是解决这个问题的方法吗 就像这条线: 用这个,这个就行了 $(document).ready(function(){ $('#test input[type="radio"]').click(function(){ $('#test').submit(); }); }); 希望这将对您有所帮助尝试live或使用类似$'test input[type=radio]'的方法。使用'live',函数{};你能显示你的HTML吗?或者在它不起作用

为什么这个函数在IE11上不起作用?它们是解决这个问题的方法吗

就像这条线:


用这个,这个就行了

$(document).ready(function(){
  $('#test input[type="radio"]').click(function(){
    $('#test').submit();
  });
});

希望这将对您有所帮助

尝试live或使用类似$'test input[type=radio]'的方法。使用'live',函数{};你能显示你的HTML吗?或者在它不起作用的地方摆弄一下吗?@WisdmLabs在一些级别上是错误的。更改单击以更改。测试是从DOM动态构建的吗?如果是这样,你可能需要创建一个更高级别的附件点,如$document。单击,'.parentclassoftest',{},function{//stuff};因为这是一个具有更高级别附件的事件,这将在每个browseralright中实现此功能,然后尝试此$body.delegate“test input[type=radio]”、“click”、函数{//your code};
$(document).on('click','#test input[type="radio"]',function(){
    //your code here
});