Intercepting a form with JQuery fails in IE
===

I'm using JQuery to intercept a form, but it's not working in any version of IE. Does anyone have any tips? I tried form.submit() but found it to have problems in Firefox. Any help would be greatly appreciated.

    $(document).ready(function() {
    $("form").submit(function(e) {
        if (e.originalEvent.explicitOriginalTarget.id == "myButton") {
            if (some status is true continue to submit the form)
                return true;
                //If the status above is false continue to prompt the user if they want to submit or not
            var ok = confirm('Do you really want to save your data?');
            if (ok) {                
                return true;
            }
            else {
                //Prevent the submit event and remain on the screen
                e.preventDefault();
                return false;
            }
        }
    });

    return;
});