开发者

jQuery change event on the iPhone

开发者 https://www.devze.com 2023-03-14 23:01 出处:网络
I have a problem getting this to fire on iPhone 4, any ideas? $(\'select\').change(function () { alert(\'you cha开发者_运维问答nged this\');

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

精彩评论

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