event.preventDefault() function not working in IE

后端 未结 11 2753
栀梦
栀梦 2020-11-22 02:22

Following is my JavaScript (mootools) code:

$(\'orderNowForm\').addEvent(\'submit\', function (event) {
    event.prev         


        
11条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-22 02:51

    FWIW, in case anyone revisits this question later, you might also check what you are handing to your onKeyPress handler function.

    I ran into this error when I mistakenly passed onKeyPress(this) instead of onKeyPress(event).

    Just something else to check.

提交回复
热议问题