I am using requirejs to load my scripts, and for some reason the domReady! module was keeping the script from loading in IE 7. because of the !
. So wrapped around the code above was this:
define(['domReady!', 'jquery.form'], function() {
//code from question
});
I changed this to the following, and it started to work:
define(['domReady', 'jquery.form'], function(ready) {
ready(function() {
//code from question
});
});
Now I just have to figure out why it still calls success
when the server sends back a 400
error.