使用 jquery 提交表单后,Jquery 不发送帖子链接

Jquery not send post link after submit form using jquery?

本文关键字:链接 Jquery 提交 jquery 表单 使用      更新时间:2023-09-26

你好朋友们,这是我的代码,代码正在工作,表格提交,然后在帖子链接未发送后,请帮助。

$(function(){
    $("#pitch_image_path_browseiser").live("change",function(){
       $("#pitch_image_path_form").attr("id","pitch_image_path_formliveset");
            $("#pitch_image_path_formliveset")[0].submit(function(event){
                event.stopPropagation(); 
                event.preventDefault();
                   alert("call");
            $.post("submit_investorform.php",{'flage':'getallimagesfromselectedid','form':'pitch_image_path_form'},function(result){
                $("#pitch_image_path_showalldatafromid").html(result);
            });
          });
         });
      });

谢谢

亲爱的摇发者,请尝试此代码。 这对我完全有帮助。

$("#pitch_image_path_browseiser").live("change",function(){
    $("#pitch_image_path_form").ajaxSubmit({ success: function(){ 
            $.post("submit_investorform.php",{'flage':'getallimagesfromselectedid','form':'pitch_image_path_form'},function(result){
                    $("#pitch_image_path_showalldatafromid").html(result);
                });
     } });
});

请检查此链接这是教程。

http://malsup.com/jquery/form/