i have a form like this :
Please try to use keyup function as "keypress" function behaves differently in different browsers.