Created
June 8, 2009 18:47
-
-
Save joshuaclayton/125985 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("form").each(function(idx, form) { | |
console.log("looping through forms"); | |
var submitFunction = $(form).attr("onsubmit"); | |
if(typeof(submitFunction) !== undefined) { | |
delete(form.onsubmit); | |
var anonymousSubmit = new Function(submitFunction); | |
$(form).submit(anonymousSubmit); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment