相关疑难解决方法(0)

使用Mobile Safari"表单助手"更改未在选定元素上触发的事件

我有动态选择下拉菜单.例如,如果选择特定月份,则第二个选择元素将填充该月份的天数.

这可以按预期工作,但是当用户在iPhone上并使用Mobile Safari的"表单助手"中内置的"下一步"按钮时,change事件(使用jQuery)似乎不会触发,第二次选择不会更新.

$('.month').change(function() {
    // update "days" select element
});
Run Code Online (Sandbox Code Playgroud)

仅供参考我也在使用jQuery mobile

iphone jquery mobile-safari ios jquery-mobile

9
推荐指数
2
解决办法
2万
查看次数

标签 统计

ios ×1

iphone ×1

jquery ×1

jquery-mobile ×1

mobile-safari ×1