i have a login page,in that after entering password when i hit 'enter' key login should occur.above said condition works in browsers like chrome,firefox,safari but not in iphone simulator.In that when i hit 'enter' page reloads.plz help...
A:
the following code helps me to bring out what i want. $('#password,#username').bind('keypress', function(e) { if(e.keyCode == 10) { e.preventDefault(); $('#id_login').click(); }
});
shanmuga
2010-10-11 11:42:36