私は次のコードを持っています:
submitAccionesDocs: function (typ) {
if (typ == "descargazip") {
var array = $("#accionesDocumentos").attr('action');
var actionCorrect = array.split("?")[0];
var actionNew = actionCorrect + "?type=" + typ;
$("#accionesDocumentos").attr('action', actionNew);
$("#accionesDocumentos").submit();
alert("submit");
$("#accionesDocumentos")[0].reset();
alert("clean");
$("#loadingimg").hide();
$("#loadingdiv").hide();
}
これを「ALERTS」でデバッグしましたが、私の問題は、関数 .submit() で、このコードが IE8 で機能しないことです。
その部分を
$("#accionesDocumentos").submit(function (e) {
e.preventDefault();
});
そしてそれはうまくいきませんでした。提案が必要です。