i didn't tested this code on iPhone but i'm sure (tested) it doesn't works on android mobiles:
$('#search').live('keyup',function(key){
if(key.which == 13){
/*ANIMATE SEARCH*/
_key = $(this).val();
$("#wrapper").html("");
$('#wrapper').hide(0).load('results.html').fadeIn(800);
$('#search-fade').val(_key).fadeIn();
}
});
to explain better :
i have a simple
<input type="text" name="search" id="search"/>
don't know why but this code doesn't works properly on android mobile phones
any ideas?
on()
instead onlive()
, cause live() is deprecated. – Triviality