jQuery change event on the iPhone

前端 未结 3 1109
野性不改
野性不改 2021-01-14 04:16

I have a problem getting this to fire on iPhone 4, any ideas?

$(\'select\').change(function () {
    alert(\'you changed this\');
});
相关标签:
3条回答
  • 2021-01-14 04:28

    Try this

    $('select').bind('change',function () {
        alert('you changed this');
    });
    
    0 讨论(0)
  • 2021-01-14 04:38

    If you're using jquery mobile, you might want to check this out https://github.com/jquery/jquery-mobile/issues/1163

    0 讨论(0)
  • 2021-01-14 04:47

    Have you tried with:

    $('select').live('change',function () {
        alert('you changed this');
    });
    
    0 讨论(0)
提交回复
热议问题