I have two textbox and two buttons on a webpage.
Each textbox has its own keypress function which checks for the return key and calls a particular javascript function.
But the problem is if I start typing on any text box and hit return both the functions are being called.This is happening only in Internet Explorer.
Onkeypress is being called as an attribute of input tag
onkeypress="if(event.keyCode==13) submitEmail();"
and
onkeypress="if(event.keyCode==13) login();"
Thanks