iPhone上的jQuery更改事件 [英] jQuery change event on the iPhone

查看:148
本文介绍了iPhone上的jQuery更改事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  $('select')。更改(function(){
alert('you change this');
});


解决方案

您是否尝试过:

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


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

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

解决方案

Have you tried with:

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

这篇关于iPhone上的jQuery更改事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆