In IE8 enter key in a form does not work

后端 未结 14 2485
失恋的感觉
失恋的感觉 2020-12-17 08:55

I have a problem that in IE8 the enter does not work to submit a form. I have generated a test page to expose this problem. It seems that displaying the form in the on

14条回答
  •  一向
    一向 (楼主)
    2020-12-17 09:40

    You may want to add a onkeyup event to your input boxes so that if you hit an enter in the input box then it will also submit.

    As CodePartizan mentioned, you need the focus on the button otherwise, so if you tab over to the button, or click on it, it seems to work for me also.

提交回复
热议问题