jQuery change event on the iPhone

前端 未结 3 1184
野性不改
野性不改 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');
    });
    

提交回复
热议问题