event.preventDefault() function not working in IE

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

Following is my JavaScript (mootools) code:

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


        
11条回答
  •  情话喂你
    2020-11-22 02:52

    return false in your listener should work in all browsers.

    $('orderNowForm').addEvent('submit', function () {
        // your code
        return false;
    }
    

提交回复
热议问题