jQuery change event on the iPhone

前端 未结 3 1110
野性不改
野性不改 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:47

    Have you tried with:

    $('select').live('change',function () {
        alert('you changed this');
    });
    

提交回复
热议问题