开发者

jQuery change event on the iPhone

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

$('select').change(function () {
    alert('you cha开发者_运维问答nged this');
});


Have you tried with:

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


Try this

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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜