jquery序列化程序在IE9和IE10中不起作用



我在这段代码中使用了serialize,在IE 8和chrome中运行良好,但在IE 9和IE 10中没有混合后期数据。看起来PHP代码没有正确执行,但它也不能在IE8中工作。所以这一定是一个Jquery问题(我猜想)。

$(document).on("submit",     "#basis_advertentie,#prijzen_huidige_jaar,#basisgegevens_verhuur,#plaatsen_advertentie_stap3", function(event) {
        //Tinymce heeft dit nodig voor de POST data
        if (this.id == 'basis_advertentie'){tinyMCE.get("omschrijving_wijzigen").save();}
        var innertab = "#innertab_"+this.id;
        /* stop form from submitting normally */
        event.preventDefault();      
        if (this.name != 'plaatsen_advertentie_stap3'){
            $.ajax({
                type:"POST",
                url:this.id+".php",
                cache: false,                   
                data: $("#"+this.id).serialize(),
                success:function(data){
                    alert(data);
                    wijziging_nog_bevestigen = 0;
                    $(innertab).html(data);
                }       
            });
        }            else {
            $.ajax({
                type:"GET",
                url:"../plaatsen_advertentie/plaatsen_advertentie_stap3.php",
                cache: false,                   
                data: $("#plaatsen_advertentie_stap3").serialize(),
                success:function(data){
                    wijziging_nog_bevestigen = 0;
                    $("#tab_2").html(data);
                }
            });
        }
    });

解决了它!在我的选择选项列表中有一个'/n',删除了它,问题就消失了!奇怪但令人着迷。。。

最新更新