0

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

$(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);
            });
          });
         });

      });

谢谢

4

1 回答 1

1

亲爱的 Rock 开发人员请尝试此代码。这对我来说完全有帮助。

$("#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/
于 2013-10-25T04:39:45.597 回答