event.preventDefault() function not working in IE

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

Following is my JavaScript (mootools) code:

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


        
11条回答
  •  抹茶落季
    2020-11-22 02:46

    if (e.preventDefault) {
        e.preventDefault();
    } else {
        e.returnValue = false;
    }
    

    Tested on IE 9 and Chrome.

提交回复
热议问题