【问题标题】:OnChange event not firing on some android devices (Note4)OnChange 事件未在某些 android 设备上触发(注 4)
【发布时间】:2015-04-02 17:30:25
【问题描述】:

OnChange 事件在大多数 android 设备上有效,但在某些设备上无效(即 note4)。我尝试将 onChange 属性添加到 select 标记中,结果相同。知道为什么这在一些设备上不起作用吗?

<select id="example" class="form-control">
 <option value="foo">bar</option>
</select>

$('#example').on('change', function() 
{

});

【问题讨论】:

    标签: android jquery onchange


    【解决方案1】:

    代替

    $('#example').on('change', function() 
    {
    
    });
    

    试试这个

    $(document).on('change','#example', function() 
    {
    
    });
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-09-01
      • 2017-01-26
      • 1970-01-01
      • 1970-01-01
      • 2022-01-12
      • 2014-10-17
      • 1970-01-01
      • 2023-01-30
      相关资源
      最近更新 更多