ajax的表單提交(類似於表單提交解決checkbox多選問題)


$.ajax({            
     cache: true,
     type: "POST",
     url:"/wap/action/addlog",
     data:$('#form_answer').serialize(),// 你的formid
     async: false,
     dataType : "json",
     success: function(data) {
         if(data.goto_flag==1)
         {
            $("#confirm").attr("href","/wap/action/explain?id="+actid+"&access_token="+access_token);
         }
         $("#hint").html(data.msg);
         $("#first-col").show();
     }
});


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM