Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery change event on the iPhone

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

$('select').change(function () {
    alert('you changed this');
});
like image 224
Ali Habibzadeh Avatar asked Dec 28 '22 18:12

Ali Habibzadeh


2 Answers

Have you tried with:

$('select').live('change',function () {
    alert('you changed this');
});
like image 172
Ovidiu Bute Avatar answered Jan 05 '23 06:01

Ovidiu Bute


Try this

$('select').bind('change',function () {
    alert('you changed this');
});
like image 24
ShankarSangoli Avatar answered Jan 05 '23 05:01

ShankarSangoli