IE8 html select needs two clicks to open dropdown

后端 未结 2 1123
不思量自难忘°
不思量自难忘° 2021-01-27 18:37

Here is my code.







        
2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-27 19:11

    At this moment I don't have an IE8 Please try to add $('#click').unbind('dblclick'); after create select element, it will dissable #click dblclick event.

    $(function() {
         $("#click").dblclick(function(e) {
              var options = "");
              $('#click').unbind('dblclick');
         });
    });
    

提交回复
热议问题